]> git.dujemihanovic.xyz Git - linux.git/commit
can: m_can: Disable and ignore ELO interrupt
authorBrian Silverman <brian.silverman@bluerivertech.com>
Mon, 29 Nov 2021 22:26:28 +0000 (14:26 -0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 7 Dec 2021 08:09:02 +0000 (09:09 +0100)
commitf58ac1adc76b5beda43c64ef359056077df4d93a
treecff337ff5e6d4ccbdcdf7625d39abd6b804e565c
parent3ec6ca6b1a8e64389f0212b5a1b0f6fed1909e45
can: m_can: Disable and ignore ELO interrupt

With the design of this driver, this condition is often triggered.
However, the counter that this interrupt indicates an overflow is never
read either, so overflowing is harmless.

On my system, when a CAN bus starts flapping up and down, this locks up
the whole system with lots of interrupts and printks.

Specifically, this interrupt indicates the CEL field of ECR has
overflowed. All reads of ECR mask out CEL.

Fixes: e0d1f4816f2a ("can: m_can: add Bosch M_CAN controller support")
Link: https://lore.kernel.org/all/20211129222628.7490-1-brian.silverman@bluerivertech.com
Cc: stable@vger.kernel.org
Signed-off-by: Brian Silverman <brian.silverman@bluerivertech.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c