1
0
Fork 0
alistair23-linux/drivers/net/can/c_can
Jeroen Hofstee 6f12001ad5 can: c_can: C_CAN: add bus recovery events
While the state is updated when the error counters increase and
decrease, there is no event when the bus recovers and the error counters
decrease again. So add that event 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>
Acked-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Tested-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2019-11-04 21:47:21 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
c_can.c can: c_can: C_CAN: add bus recovery events 2019-11-04 21:47:21 +01:00
c_can.h can: c_can: c_can_poll(): only read status register after status IRQ 2019-11-04 21:47:21 +01:00
c_can_pci.c can: c_can_pci: make c_can_pci_data const 2017-12-01 09:14:22 +01:00
c_can_platform.c can: c_can: don't indicate triple sampling support for D_CAN 2017-11-10 09:15:28 +01:00