[PATCH v2 1/7] can: flexcan: change RX-FIFO feature at runtime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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







[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux