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)
commit4f232482467a354a74e08633faa1ed93fe00ee5e
tree6189431ae87917a1353c0a1c44d5c40bc83e69f4
parenta0cf2fe6cf2eff9fa74181e8cf2116d35ba47a09
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