Skip to content

Commit f89298c

Browse files
legoabramcfriedt
authored andcommitted
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 <[email protected]>
1 parent 2e98b1f commit f89298c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/can/can_mcan.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ int can_mcan_init(const struct device *dev, const struct can_mcan_config *cfg,
404404
#ifdef CONFIG_CAN_STM32FD
405405
can->ils = CAN_MCAN_ILS_RXFIFO0 | CAN_MCAN_ILS_RXFIFO1;
406406
#else
407-
can->ils = CAN_MCAN_ILS_RF0N | CAN_MCAN_ILS_RF1N;
407+
can->ils = CAN_MCAN_ILS_RF0N | CAN_MCAN_ILS_RF1N |
408+
CAN_MCAN_ILS_RF0L | CAN_MCAN_ILS_RF1L;
408409
#endif
409410
can->ile = CAN_MCAN_ILE_EINT0 | CAN_MCAN_ILE_EINT1;
410411
/* Interrupt on every TX fifo element*/

0 commit comments

Comments
 (0)