~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/networking/device_drivers/can/freescale/flexcan.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 .. SPDX-License-Identifier: GPL-2.0+
  2 
  3 =============================
  4 Flexcan CAN Controller driver
  5 =============================
  6 
  7 Authors: Marc Kleine-Budde <mkl@pengutronix.de>,
  8 Dario Binacchi <dario.binacchi@amarulasolutions.com>
  9 
 10 On/off RTR frames reception
 11 ===========================
 12 
 13 For most flexcan IP cores the driver supports 2 RX modes:
 14 
 15 - FIFO
 16 - mailbox
 17 
 18 The older flexcan cores (integrated into the i.MX25, i.MX28, i.MX35
 19 and i.MX53 SOCs) only receive RTR frames if the controller is
 20 configured for RX-FIFO mode.
 21 
 22 The RX FIFO mode uses a hardware FIFO with a depth of 6 CAN frames,
 23 while the mailbox mode uses a software FIFO with a depth of up to 62
 24 CAN frames. With the help of the bigger buffer, the mailbox mode
 25 performs better under high system load situations.
 26 
 27 As reception of RTR frames is part of the CAN standard, all flexcan
 28 cores come up in a mode where RTR reception is possible.
 29 
 30 With the "rx-rtr" private flag the ability to receive RTR frames can
 31 be waived at the expense of losing the ability to receive RTR
 32 messages. This trade off is beneficial in certain use cases.
 33 
 34 "rx-rtr" on
 35   Receive RTR frames. (default)
 36 
 37   The CAN controller can and will receive RTR frames.
 38 
 39   On some IP cores the controller cannot receive RTR frames in the
 40   more performant "RX mailbox" mode and will use "RX FIFO" mode
 41   instead.
 42 
 43 "rx-rtr" off
 44 
 45   Waive ability to receive RTR frames. (not supported on all IP cores)
 46 
 47   This mode activates the "RX mailbox mode" for better performance, on
 48   some IP cores RTR frames cannot be received anymore.
 49 
 50 The setting can only be changed if the interface is down::
 51 
 52     ip link set dev can0 down
 53     ethtool --set-priv-flags can0 rx-rtr {off|on}
 54     ip link set dev can0 up

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php