Markus Schneider-Pargmann 67727a17a6 can: tcan4x5x: Fix use of register error status mask
TCAN4X5X_ERROR_STATUS is not a status register that needs clearing
during interrupt handling. Instead this is a masking register that masks
error interrupts. Writing TCAN4X5X_CLEAR_ALL_INT to this register
effectively masks everything.

Rename the register and mask all error interrupts only once by writing
to the register in tcan4x5x_init.

Fixes: 5443c226ba91 ("can: tcan4x5x: Add tcan4x5x driver to the kernel")
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/all/20221206115728.1056014-10-msp@baylibre.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-12-12 12:00:50 +01:00
..
2022-11-07 14:00:27 +01:00
2022-11-07 14:00:27 +01:00
2022-11-07 14:00:27 +01:00
2022-11-07 14:00:27 +01:00
2022-12-07 10:32:24 +01:00
2022-11-07 14:00:27 +01:00
2022-11-07 14:00:27 +01:00
2022-12-12 11:41:25 +01:00
2022-11-07 14:00:27 +01:00
2022-11-07 14:00:27 +01:00
2022-11-07 14:00:27 +01:00
2022-10-19 21:33:30 +02:00
2022-11-07 14:00:27 +01:00
2022-10-19 21:33:30 +02:00
2022-11-07 14:00:27 +01:00
2022-11-07 14:00:27 +01:00
2022-11-07 14:00:27 +01:00