aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/ti_hecc.c
diff options
context:
space:
mode:
authorAnssi Hannula <anssi.hannula@bitwise.fi>2017-02-08 13:13:40 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2018-07-23 14:34:45 +0200
commit877e0b75947e2c7acf5624331bb17ceb093c98ae (patch)
treee3047ed839cd505ac730e77b2ad7c9de4959e7b0 /drivers/net/can/ti_hecc.c
parentcan: xilinx_can: fix RX loop if RXNEMP is asserted without RXOK (diff)
downloadlinux-dev-877e0b75947e2c7acf5624331bb17ceb093c98ae.tar.xz
linux-dev-877e0b75947e2c7acf5624331bb17ceb093c98ae.zip
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 'drivers/net/can/ti_hecc.c')
0 files changed, 0 insertions, 0 deletions