diff options
author | Anssi Hannula <anssi.hannula@bitwise.fi> | 2017-02-08 13:13:40 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2018-07-23 14:34:45 +0200 |
commit | 877e0b75947e2c7acf5624331bb17ceb093c98ae (patch) | |
tree | e3047ed839cd505ac730e77b2ad7c9de4959e7b0 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 32852c561bffd613d4ed7ec464b1e03e1b7b6c5c (diff) |
can: xilinx_can: fix recovery from error states not being propagated
The xilinx_can driver contains no mechanism for propagating recovery
from CAN_STATE_ERROR_WARNING and CAN_STATE_ERROR_PASSIVE.
Add such a mechanism by factoring the handling of
XCAN_STATE_ERROR_PASSIVE and XCAN_STATE_ERROR_WARNING out of
xcan_err_interrupt and checking for recovery after RX and TX if the
interface is in one of those states.
Tested with the integrated CAN on Zynq-7000 SoC.
Fixes: b1201e44f50b ("can: xilinx CAN controller support")
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions