Skip to content

Commit f04aefd

Browse files
can: flexcan: mark RX via mailboxes as supported on MCF5441X
Most flexcan IP cores support 2 RX modes: - FIFO - mailbox The flexcan IP core on the MCF5441X cannot receive CAN RTR messages via mailboxes. However the mailbox mode is more performant. The commit | 1c45f57 ("can: flexcan: add ethtool support to change rx-rtr setting during runtime") added support to switch from FIFO to mailbox mode on these cores. After testing the mailbox mode on the MCF5441X by Angelo Dureghello, this patch marks it (without RTR capability) as supported. Further the IP core overview table is updated, that RTR reception via mailboxes is not supported. Link: https://lore.kernel.org/all/[email protected] Tested-by: Angelo Dureghello <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent e59986d commit f04aefd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/net/can/flexcan/flexcan-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ static_assert(sizeof(struct flexcan_regs) == 0x4 * 18 + 0xfb8);
296296
static const struct flexcan_devtype_data fsl_mcf5441x_devtype_data = {
297297
.quirks = FLEXCAN_QUIRK_BROKEN_PERR_STATE |
298298
FLEXCAN_QUIRK_NR_IRQ_3 | FLEXCAN_QUIRK_NR_MB_16 |
299+
FLEXCAN_QUIRK_SUPPPORT_RX_MAILBOX |
299300
FLEXCAN_QUIRK_SUPPPORT_RX_FIFO,
300301
};
301302

drivers/net/can/flexcan/flexcan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Below is some version info we got:
2222
* SOC Version IP-Version Glitch- [TR]WRN_INT IRQ Err Memory err RTR rece- FD Mode MB
2323
* Filter? connected? Passive detection ption in MB Supported?
24-
* MCF5441X FlexCAN2 ? no yes no no yes no 16
24+
* MCF5441X FlexCAN2 ? no yes no no no no 16
2525
* MX25 FlexCAN2 03.00.00.00 no no no no no no 64
2626
* MX28 FlexCAN2 03.00.04.00 yes yes no no no no 64
2727
* MX35 FlexCAN2 03.00.00.00 no no no no no no 64

0 commit comments

Comments
 (0)