can: esd_usb: Add support for esd CAN-USB/3 (CAN FD)
From: | Frank Jungclaus <frank.jungclaus-AT-esd.eu> | |
To: | linux-can-AT-vger.kernel.org, Marc Kleine-Budde <mkl-AT-pengutronix.de>, Wolfgang Grandegger <wg-AT-grandegger.com>, Vincent Mailhol <mailhol.vincent-AT-wanadoo.fr> | |
Subject: | [PATCH 0/2] can: esd_usb: Add support for esd CAN-USB/3 (CAN FD) | |
Date: | Thu, 04 May 2023 17:44:12 +0200 | |
Message-ID: | <20230504154414.1864615-1-frank.jungclaus@esd.eu> | |
Cc: | Stefan Mätje <stefan.maetje-AT-esd.eu>, netdev-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, Frank Jungclaus <frank.jungclaus-AT-esd.eu> | |
Archive-link: | Article |
Add support for the newly available esd CAN-USB/3. The USB protocol for the CAN-USB/3 is similar to the protocol used for the CAN-USB/2 and the CAN-USB/Micro, so most of the code can be shared for all three platforms. Most work simply arises from the fact, that the CAN-USB/3 is capable of handling CAN FD frames. The main job is to * also probe for an esd CAN-USB/3 * extend USB structures for CAN FD data * allow esd_usb_rx_can_msg() and esd_usb_start_xmit() to handle CAN FD frames * spend structures and functionality for setting a CAN FD bittiming Frank Jungclaus (2): can: esd_usb: Apply some small changes before adding esd CAN-USB/3 support can: esd_usb: Add support for esd CAN-USB/3 drivers/net/can/usb/esd_usb.c | 286 +++++++++++++++++++++++++++++----- 1 file changed, 251 insertions(+), 35 deletions(-) base-commit: 14575e3b5f3ece74e9143d7f7f195f3e5ff085f5 -- 2.25.1