]> 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)
commit249c7d4ca95de511375f178237ab5c464f41fd51
treecff337ff5e6d4ccbdcdf7625d39abd6b804e565c
parent4704b05f165dba5459bae4f0ecd7e422ab4c795e
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: 60471552e2d6 ("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