]> git.baikalelectronics.ru Git - kernel.git/commit
can: ti_hecc: add missing state changes
authorJeroen Hofstee <jhofstee@victronenergy.com>
Tue, 24 Sep 2019 18:46:06 +0000 (18:46 +0000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Nov 2019 20:47:23 +0000 (21:47 +0100)
commit65de6892ae60920bb53a90c4bb1e273d14724733
tree83d646903cc4d99828d0d891de9c7205fa767095
parent1d5f44e28fbcee784fdc462bd73dcecac9d92315
can: ti_hecc: add missing state changes

While the ti_hecc has interrupts to report when the error counters increase
to a certain level and which change state it doesn't handle the case that
the error counters go down again, so the reported state can actually be
wrong. Since there is no interrupt for that, do update state based on the
error counters, when the state is not error active and goes down again.

Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ti_hecc.c