]> git.baikalelectronics.ru Git - kernel.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)
commit498534979ca0838e402d7c61780374427edfcf48
treecff337ff5e6d4ccbdcdf7625d39abd6b804e565c
parent3df087f3dd888037677ebe01b840d9bf3eeece88
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: 366ec73cfaf2 ("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