]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: mark RX via mailboxes as supported on MCF5441X
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 21 Jan 2022 08:22:34 +0000 (09:22 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 24 Jan 2022 17:27:43 +0000 (18:27 +0100)
commitb94e343c3a383128cc01765dba4f1eb760c8f315
tree0afe10c663acd36d9aa286777e0c17e303aafbbb
parentc29118869ac4055fd474cc889ce05d38f85a24a4
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

807a8bfe0c3a ("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/20220121084425.3141218-1-mkl@pengutronix.de
Tested-by: Angelo Dureghello <angelo@kernel-space.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan/flexcan-core.c
drivers/net/can/flexcan/flexcan.h