]> git.baikalelectronics.ru Git - kernel.git/commit
can: m_can: Disable IRQs on FIFO bus errors
authorMatt Kline <matt@bitbashing.io>
Tue, 17 Aug 2021 05:08:51 +0000 (22:08 -0700)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 19 Aug 2021 13:07:04 +0000 (15:07 +0200)
commit81caecb72d42fd8875103186842769ca9439836f
treecefcd94b04bff6a8dade0eab6db1cfd2901ee8f9
parent8b4fad3da81004a2d9f7127e2738c0a2fe8a1f0c
can: m_can: Disable IRQs on FIFO bus errors

If FIFO reads or writes fail due to the underlying regmap (e.g., SPI)
I/O, propagate that up to the m_can driver, log an error, and disable
interrupts, similar to the mcp251xfd driver.

While reworking the FIFO functions to add this error handling,
add support for bulk reads and writes of multiple registers.

Link: https://lore.kernel.org/r/20210817050853.14875-2-matt@bitbashing.io
Signed-off-by: Matt Kline <matt@bitbashing.io>
[mkl: re-wrap long lines, remove WARN_ON, convert to netdev block comments]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c
drivers/net/can/m_can/m_can.h
drivers/net/can/m_can/m_can_pci.c
drivers/net/can/m_can/m_can_platform.c
drivers/net/can/m_can/tcan4x5x-core.c