1
0
Fork 0
alistair23-linux/drivers/net/can/usb/peak_usb
Jeroen Hofstee 128a1b87d3 can: peak_usb: report bus recovery as well
While the state changes are reported when the error counters increase
and decrease, there is no event when the bus recovers and the error
counters decrease again. So add those as well.

Change the state going downward to be ERROR_PASSIVE -> ERROR_WARNING ->
ERROR_ACTIVE instead of directly to ERROR_ACTIVE again.

Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Cc: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2019-11-04 21:47:20 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
pcan_usb.c can: peak_usb: report bus recovery as well 2019-11-04 21:47:20 +01:00
pcan_usb_core.c can: peak_usb: fix slab info leak 2019-11-04 21:47:20 +01:00
pcan_usb_core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
pcan_usb_fd.c can: peak_usb: pcan_usb_fd: Fix info-leaks to USB devices 2019-08-02 13:57:48 +02:00
pcan_usb_pro.c can: peak_usb: pcan_usb_pro: Fix info-leaks to USB devices 2019-08-02 13:58:01 +02:00
pcan_usb_pro.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00