Skip to content

Commit

Permalink
drivers: can: mcan: Move RF0L and RF1L to line 1
Browse files Browse the repository at this point in the history
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 <abram.early@gmail.com>
(cherry picked from commit 6e789e7)
  • Loading branch information
legoabram authored and jgl-meta committed Oct 11, 2023
1 parent daca8f8 commit 0ec9675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/can/can_mcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0ec9675

Please sign in to comment.