linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Add the first documentation for a CAN driver
@ 2022-01-07  8:13 Dario Binacchi
  2022-01-07  8:13 ` [RFC PATCH 1/2] docs: networking: device drivers: add can sub-folder Dario Binacchi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dario Binacchi @ 2022-01-07  8:13 UTC (permalink / raw)
  To: linux-kernel
  Cc: Marc Kleine-Budde, linux-can, Dario Binacchi, Coiby Xu,
	David S. Miller, Greg Kroah-Hartman, Jakub Kicinski,
	Jonathan Corbet, M Chetan Kumar, linux-doc, netdev

The series was born from the need to document the enabling at runtime
reception of RTR frames for the Flexcan CAN controller.
For more details see https://lore.kernel.org/all/20220106105415.pdmrdgnx6p2tyff6@pengutronix.de/


Dario Binacchi (2):
  docs: networking: device drivers: add can sub-folder
  docs: networking: device drivers: can: add flexcan

 .../device_drivers/can/freescale/flexcan.rst  | 25 +++++++++++++++++++
 .../networking/device_drivers/can/index.rst   | 20 +++++++++++++++
 .../networking/device_drivers/index.rst       |  1 +
 3 files changed, 46 insertions(+)
 create mode 100644 Documentation/networking/device_drivers/can/freescale/flexcan.rst
 create mode 100644 Documentation/networking/device_drivers/can/index.rst

-- 
2.32.0


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

* [RFC PATCH 1/2] docs: networking: device drivers: add can sub-folder
  2022-01-07  8:13 [RFC PATCH 0/2] Add the first documentation for a CAN driver Dario Binacchi
@ 2022-01-07  8:13 ` Dario Binacchi
  2022-01-07  8:13 ` [RFC PATCH 2/2] docs: networking: device drivers: can: add flexcan Dario Binacchi
  2022-01-07 19:20 ` [RFC PATCH 0/2] Add the first documentation for a CAN driver Marc Kleine-Budde
  2 siblings, 0 replies; 4+ messages in thread
From: Dario Binacchi @ 2022-01-07  8:13 UTC (permalink / raw)
  To: linux-kernel
  Cc: Marc Kleine-Budde, linux-can, Dario Binacchi, Coiby Xu,
	David S. Miller, Greg Kroah-Hartman, Jakub Kicinski,
	Jonathan Corbet, M Chetan Kumar, linux-doc, netdev

Add the container for CAN drivers documentation.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---

 .../networking/device_drivers/can/index.rst    | 18 ++++++++++++++++++
 .../networking/device_drivers/index.rst        |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 Documentation/networking/device_drivers/can/index.rst

diff --git a/Documentation/networking/device_drivers/can/index.rst b/Documentation/networking/device_drivers/can/index.rst
new file mode 100644
index 000000000000..218276818968
--- /dev/null
+++ b/Documentation/networking/device_drivers/can/index.rst
@@ -0,0 +1,18 @@
+.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
+Controller Area Network (CAN) Device Drivers
+============================================
+
+Device drivers for CAN devices.
+
+Contents:
+
+.. toctree::
+   :maxdepth: 2
+
+.. only::  subproject and html
+
+   Indices
+   =======
+
+   * :ref:`genindex`
diff --git a/Documentation/networking/device_drivers/index.rst b/Documentation/networking/device_drivers/index.rst
index 3a5a1d46e77e..5f5cfdb2a300 100644
--- a/Documentation/networking/device_drivers/index.rst
+++ b/Documentation/networking/device_drivers/index.rst
@@ -11,6 +11,7 @@ Contents:
    appletalk/index
    atm/index
    cable/index
+   can/index
    cellular/index
    ethernet/index
    fddi/index
-- 
2.32.0


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

* [RFC PATCH 2/2] docs: networking: device drivers: can: add flexcan
  2022-01-07  8:13 [RFC PATCH 0/2] Add the first documentation for a CAN driver Dario Binacchi
  2022-01-07  8:13 ` [RFC PATCH 1/2] docs: networking: device drivers: add can sub-folder Dario Binacchi
@ 2022-01-07  8:13 ` Dario Binacchi
  2022-01-07 19:20 ` [RFC PATCH 0/2] Add the first documentation for a CAN driver Marc Kleine-Budde
  2 siblings, 0 replies; 4+ messages in thread
From: Dario Binacchi @ 2022-01-07  8:13 UTC (permalink / raw)
  To: linux-kernel
  Cc: Marc Kleine-Budde, linux-can, Dario Binacchi, David S. Miller,
	Jakub Kicinski, Jonathan Corbet, linux-doc, netdev

Add initial documentation for Flexcan driver.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.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@pengutronix.de>,
+Dario Binacchi <dario.binacchi@amarula.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


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

* Re: [RFC PATCH 0/2] Add the first documentation for a CAN driver
  2022-01-07  8:13 [RFC PATCH 0/2] Add the first documentation for a CAN driver Dario Binacchi
  2022-01-07  8:13 ` [RFC PATCH 1/2] docs: networking: device drivers: add can sub-folder Dario Binacchi
  2022-01-07  8:13 ` [RFC PATCH 2/2] docs: networking: device drivers: can: add flexcan Dario Binacchi
@ 2022-01-07 19:20 ` Marc Kleine-Budde
  2 siblings, 0 replies; 4+ messages in thread
From: Marc Kleine-Budde @ 2022-01-07 19:20 UTC (permalink / raw)
  To: Dario Binacchi
  Cc: linux-kernel, linux-can, Coiby Xu, David S. Miller,
	Greg Kroah-Hartman, Jakub Kicinski, Jonathan Corbet,
	M Chetan Kumar, linux-doc, netdev

[-- Attachment #1: Type: text/plain, Size: 646 bytes --]

On 07.01.2022 09:13:04, Dario Binacchi wrote:
> The series was born from the need to document the enabling at runtime
> reception of RTR frames for the Flexcan CAN controller.
> For more details see https://lore.kernel.org/all/20220106105415.pdmrdgnx6p2tyff6@pengutronix.de/

Thanks for the work, looks good. I've added some more text and send a
v3.

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07  8:13 [RFC PATCH 0/2] Add the first documentation for a CAN driver Dario Binacchi
2022-01-07  8:13 ` [RFC PATCH 1/2] docs: networking: device drivers: add can sub-folder Dario Binacchi
2022-01-07  8:13 ` [RFC PATCH 2/2] docs: networking: device drivers: can: add flexcan Dario Binacchi
2022-01-07 19:20 ` [RFC PATCH 0/2] Add the first documentation for a CAN driver Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).