All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/7] can: flexcan: change RX-FIFO feature at runtime
@ 2022-01-07 19:30 Marc Kleine-Budde
  2022-01-07 19:30 ` [PATCH v3 1/7] can: flexcan: move driver into separate sub directory Marc Kleine-Budde
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Marc Kleine-Budde @ 2022-01-07 19:30 UTC (permalink / raw)
  To: linux-can; +Cc: Dario Binacchi

Hello,

Here's the v2 of Dario's and my patches to switch of RTR reception to
make use of bigger RX buffer:

Show available private flags:

| $ sudo ethtool --show-priv-flags can0
| Private flags for can0:
| rx-rtr: on

Change private flag:

| $ sudo ethtool --set-priv-flags can0 rx-rtr off
| netlink error: Device or resource busy

...does not work if interface is up.

Shut down interface and change "rx-rtr":

| $ sudo ip link set dev can0 down
| $ sudo ethtool --set-priv-flags can0 rx-rtr off
| $ sudo ethtool --show-priv-flags can0
| Private flags for can0:
| rx-rtr: off

regards,
Marc

Changes since v2:
- add missing variable initialization, tnx Dario
- renamed flag rx-fifo -> rx-rtr
- renamed existing quirks
- added more quirks to describe controller
- added Dario's documentation patches

Changes since RFC:
- move driver into subdir
- replaced memcpy() by direct assignment, do this earlier
- use priv->devtype_data.quirks where possible
- rename flexcan_main.c -> flexcan-core.c
  (mcp251xfd and tcan4x5x driver have the same naming scheme)
- use copyright notice from flexcan.c in flexcan.h
- add private flag support to set rx-fifo
- remove drvinfo, the kernel will fall back to the default implementation





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-01-08 19:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07 19:30 [PATCH v2 1/7] can: flexcan: change RX-FIFO feature at runtime Marc Kleine-Budde
2022-01-07 19:30 ` [PATCH v3 1/7] can: flexcan: move driver into separate sub directory Marc Kleine-Budde
2022-01-07 19:31 ` [PATCH v3 2/7] can: flexcan: allow to change quirks at runtime Marc Kleine-Budde
2022-01-07 19:31 ` [PATCH v3 3/7] can: flexcan: rename RX modes Marc Kleine-Budde
2022-01-07 19:31 ` [PATCH v3 4/7] can: flexcan: add more quirks to describe RX path capabilities Marc Kleine-Budde
2022-01-07 19:31 ` [PATCH v3 5/7] can: flexcan: add ethtool support to change rx-rtr setting during runtime Marc Kleine-Budde
2022-01-07 19:31 ` [PATCH v3 6/7] docs: networking: device drivers: add can sub-folder Marc Kleine-Budde
2022-01-07 19:31 ` [PATCH v3 7/7] docs: networking: device drivers: can: add flexcan Marc Kleine-Budde
2022-01-08 13:12   ` Dario Binacchi
2022-01-08 19:51     ` Marc Kleine-Budde

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.