Commit 84091f5b authored by Abram Early's avatar Abram Early Committed by Henrik Brix Andersen
Browse files

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: default avatarAbram Early <abram.early@gmail.com>
parent a094fc5e
Loading
Loading
Loading
Loading
+2 −1
Changes for drivers/can/can_mcan.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -510,7 +510,8 @@ int can_mcan_init(const struct device *dev)
#ifdef CONFIG_CAN_STM32FD
	can->ils = CAN_MCAN_ILS_RXFIFO0 | CAN_MCAN_ILS_RXFIFO1;
#else
	can->ils = CAN_MCAN_ILS_RF0N | CAN_MCAN_ILS_RF1N;
	can->ils = CAN_MCAN_ILS_RF0N | CAN_MCAN_ILS_RF1N |
		CAN_MCAN_ILS_RF0L | CAN_MCAN_ILS_RF1L;
#endif
	can->ile = CAN_MCAN_ILE_EINT0 | CAN_MCAN_ILE_EINT1;
	/* Interrupt on every TX fifo element*/