diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2023-05-01 18:14:41 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2023-10-05 21:47:28 +0200 |
commit | 9df2faf947bc4e7a48dbd7768ccb95337bb12c44 (patch) | |
tree | 1a85e7774d6675dfa8bc2e2151d93f2b279ae1d6 /drivers/net/hyperv | |
parent | f13e86993d85ac98b12159ca9e31dc0357e5a926 (diff) |
can: at91_can: at91_irq_err_line(): make use of can_change_state() and can_bus_off()
The driver implements a hand crafted CAN state handling. Update the
driver to make use of can_change_state(), introduced in ("can: dev:
Consolidate and unify state change handling")
Also switch from hand crafted CAN bus off handling to can_bus_off():
In case of a bus off, abort all pending TX requests, switch off the
device and let can_bus_off() handle the device restart.
Link: https://lore.kernel.org/all/20231005-at91_can-rx_offload-v2-24-9987d53600e0@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/hyperv')
0 files changed, 0 insertions, 0 deletions