Commit f89298cf authored by Abram Early's avatar Abram Early Committed by Chris Friedt
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 2e98b1fd
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
@@ -404,7 +404,8 @@ int can_mcan_init(const struct device *dev, const struct can_mcan_config *cfg,
#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*/