From 26180f97d963c7f5bc3f7e3a626748e7d309b08c Mon Sep 17 00:00:00 2001 From: Abram Early Date: Tue, 3 Oct 2023 16:45:13 -0600 Subject: [PATCH] drivers: can: mcan: Move RF0L and RF1L to line 1 The code is designed to handle RF0L and RF1L in line 1, but they were being sent to line 0. Becuase they weren't handled, the interrupts would never be handled which locked up the chip. Signed-off-by: Abram Early (cherry picked from commit 6e789e7492049af5a530302b8d43ac8d60629f84) --- drivers/can/can_mcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/can/can_mcan.c b/drivers/can/can_mcan.c index 0655d3d9e5a35..0cf8d12c4b975 100644 --- a/drivers/can/can_mcan.c +++ b/drivers/can/can_mcan.c @@ -1462,7 +1462,7 @@ int can_mcan_init(const struct device *dev) return err; } - reg = CAN_MCAN_ILS_RF0NL | CAN_MCAN_ILS_RF1NL; + reg = CAN_MCAN_ILS_RF0NL | CAN_MCAN_ILS_RF1NL | CAN_MCAN_ILS_RF0LL | CAN_MCAN_ILS_RF1LL; err = can_mcan_write_reg(dev, CAN_MCAN_ILS, reg); if (err != 0) { return err;