mirror-linux/drivers/net/can/usb/peak_usb
Stephane Grosjean 788199b73b can: peak_usb: fix USB FD devices potential malfunction
The latest firmware versions of USB CAN FD interfaces export the EP numbers
to be used to dialog with the device via the "type" field of a response to
a vendor request structure, particularly when its value is greater than or
equal to 2.

Correct the driver's test of this field.

Fixes: 4f23248246 ("can: peak_usb: include support for a new MCU")
Signed-off-by: Stephane Grosjean <stephane.grosjean@hms-networks.com>
Link: https://patch.msgid.link/20250724081550.11694-1-stephane.grosjean@free.fr
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
[mkl: rephrase commit message]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2025-07-25 12:09:19 +02:00
..
Makefile
pcan_usb.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
pcan_usb_core.c can: dev: add struct data_bittiming_params to group FD parameters 2025-05-21 14:33:28 +02:00
pcan_usb_core.h net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07:00
pcan_usb_fd.c can: peak_usb: fix USB FD devices potential malfunction 2025-07-25 12:09:19 +02:00
pcan_usb_pro.c can: peak_usb: Reorder include directives alphabetically 2023-02-02 17:39:29 +01:00
pcan_usb_pro.h