diff options
author | 2018-02-26 14:39:59 +0200 | |
---|---|---|
committer | 2018-07-23 14:34:46 +0200 | |
commit | 2f4f0f338cf453bfcdbcf089e177c16f35f023c8 (patch) | |
tree | c0fd1f7f92f49a778e13fff5708f056e65806b5f /drivers/irqchip/irq-xtensa-pic.c | |
parent | can: xilinx_can: fix RX overflow interrupt not being enabled (diff) | |
download | linux-2f4f0f338cf453bfcdbcf089e177c16f35f023c8.tar.gz linux-2f4f0f338cf453bfcdbcf089e177c16f35f023c8.tar.bz2 linux-2f4f0f338cf453bfcdbcf089e177c16f35f023c8.zip |
can: xilinx_can: fix incorrect clear of non-processed interrupts
xcan_interrupt() clears ERROR|RXOFLV|BSOFF|ARBLST interrupts if any of
them is asserted. This does not take into account that some of them
could have been asserted between interrupt status read and interrupt
clear, therefore clearing them without handling them.
Fix the code to only clear those interrupts that it knows are asserted
and therefore going to be processed in xcan_err_interrupt().
Fixes: b1201e44f50b ("can: xilinx CAN controller support")
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/irqchip/irq-xtensa-pic.c')
0 files changed, 0 insertions, 0 deletions