can: flexcan: fix irq flooding by clearing all interrupt sources
authorWolfgang Grandegger <wg@grandegger.com>
Mon, 12 Dec 2011 15:09:28 +0000 (16:09 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 2 Feb 2012 23:24:50 +0000 (00:24 +0100)
commit6e9d554fa6e481a848358c215f129432262123c0
tree74929f3f9fe8e3108f214ad28d60bbbb4762ca8b
parentba7605745d5c99f0e71b3ec6c7cb5ed6afe540ad
can: flexcan: fix irq flooding by clearing all interrupt sources

As pointed out by Reuben Dowle and Lothar Waßmann, the TWRN_INT,
RWRN_INT, BOFF_INT interrupt sources need to be cleared as well
to avoid interrupt flooding, at least for the Flexcan on i.MX28
SOCs. Furthermore, the interrupts are only cleared, if really one
of those interrupt sources are pending (which is not the case for
rx and tx done).

Cc: Reuben Dowle <Reuben.Dowle@navico.com>
Cc: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c