WSL2-Linux-Kernel/drivers/net/can/usb/peak_usb
Stephane Grosjean 590eb2b7d8 can: peak_usb: pcan_usb_handle_bus_evt(): fix reading rxerr/txerr values
This patch fixes an incorrect way of reading error counters in messages
received for this purpose from the PCAN-USB interface. These messages
inform about the increase or decrease of the error counters, whose values
are placed in bytes 1 and 2 of the message data (not 0 and 1).

Fixes: ea8b33bde7 ("can: pcan_usb: add support of rxerr/txerr counters")
Link: https://lore.kernel.org/r/20210625130931.27438-4-s.grosjean@peak-system.com
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2021-07-24 19:02:32 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
pcan_usb.c can: peak_usb: pcan_usb_handle_bus_evt(): fix reading rxerr/txerr values 2021-07-24 19:02:32 +02:00
pcan_usb_core.c can: peak_usb: peak_usb_probe(): make use of driver_info 2021-04-13 10:15:43 +02:00
pcan_usb_core.h can: peak_usb: remove write only variable struct peak_usb_adapter::ts_period 2021-04-13 10:15:43 +02:00
pcan_usb_fd.c can: peak_usb: remove write only variable struct peak_usb_adapter::ts_period 2021-04-13 10:15:43 +02:00
pcan_usb_pro.c can: peak_usb: pcan_usb_{,pro}_get_device_id(): remove unneeded check for device_id 2021-04-13 10:15:43 +02:00
pcan_usb_pro.h can: peak_usb: pcan_usb_pro.h: remove double space in indention 2021-04-13 10:15:43 +02:00