[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220107081306.3681899-3-dario.binacchi@amarulasolutions.com>
Date: Fri, 7 Jan 2022 09:13:06 +0100
From: Dario Binacchi <dario.binacchi@...rulasolutions.com>
To: linux-kernel@...r.kernel.org
Cc: Marc Kleine-Budde <mkl@...gutronix.de>, linux-can@...r.kernel.org,
Dario Binacchi <dario.binacchi@...rulasolutions.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Jonathan Corbet <corbet@....net>, linux-doc@...r.kernel.org,
netdev@...r.kernel.org
Subject: [RFC PATCH 2/2] docs: networking: device drivers: can: add flexcan
Add initial documentation for Flexcan driver.
Signed-off-by: Dario Binacchi <dario.binacchi@...rulasolutions.com>
---
.../device_drivers/can/freescale/flexcan.rst | 25 +++++++++++++++++++
.../networking/device_drivers/can/index.rst | 2 ++
2 files changed, 27 insertions(+)
create mode 100644 Documentation/networking/device_drivers/can/freescale/flexcan.rst
diff --git a/Documentation/networking/device_drivers/can/freescale/flexcan.rst b/Documentation/networking/device_drivers/can/freescale/flexcan.rst
new file mode 100644
index 000000000000..1a5bb2ed08a3
--- /dev/null
+++ b/Documentation/networking/device_drivers/can/freescale/flexcan.rst
@@ -0,0 +1,25 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+=============================
+Flexcan CAN Controller driver
+=============================
+
+Authors: Marc Kleine-Budde <mkl@...gutronix.de>,
+Dario Binacchi <dario.binacchi@...rula.solutions.com>
+
+On/off RTR frames reception
+===========================
+
+ 1. interface down::
+
+ ethtool --set-priv-flags can0 rx-rtr {off|on}
+
+ 2. interface up::
+
+ ip link set dev can0 down
+ ethtool --set-priv-flags can0 rx-rtr {off|on}
+ ip link set dev can0 up
+
+Note. For the Flexcan on i.MX25, i.Mx28, i.MX35 and i.Mx53 SOCs, the reception
+of RTR frames is possible only if the controller is configured in RxFIFO mode.
+In this mode only 6 of the 64 message buffers are used for reception.
diff --git a/Documentation/networking/device_drivers/can/index.rst b/Documentation/networking/device_drivers/can/index.rst
index 218276818968..58b6e0ad3030 100644
--- a/Documentation/networking/device_drivers/can/index.rst
+++ b/Documentation/networking/device_drivers/can/index.rst
@@ -10,6 +10,8 @@ Contents:
.. toctree::
:maxdepth: 2
+ freescale/flexcan
+
.. only:: subproject and html
Indices
--
2.32.0
Powered by blists - more mailing lists