]> git.baikalelectronics.ru Git - kernel.git/commit
can: peak_usb: include support for a new MCU
authorStephane Grosjean <s.grosjean@peak-system.com>
Tue, 19 Jul 2022 12:06:32 +0000 (14:06 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 19 Jul 2022 19:41:38 +0000 (21:41 +0200)
commit31b21e70747c9fb616ea6935575e2d6889a688af
tree6189431ae87917a1353c0a1c44d5c40bc83e69f4
parentc53c82096a38fc5a5bf2c1e0d22a768d741065f4
can: peak_usb: include support for a new MCU

The CANFD-USB PCAN-USB FD interface undergoes an internal component
change that requires a slight modification of its drivers, which leads
them to dynamically use endpoint numbers provided by the interface
itself. In addition to a change in the calls to the USB functions
exported by the kernel, the detection of the USB interface dedicated
to CAN must also be modified, as some PEAK-System devices support
other interfaces than CAN.

Link: https://lore.kernel.org/all/20220719120632.26774-3-s.grosjean@peak-system.com
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
[mkl: add missing cpu_to_le16() conversion]
[mkl: fix networking block comment style]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb_fd.c