can: flexcan: add more quirks to describe RX path capabilities
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 7 Jan 2022 13:29:15 +0000 (14:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:04:56 +0000 (11:04 +0100)
commit67de7d5ae29b13aa259132101a2e6e4efb3432ad
treead57b3fa8745adca46812e21a158eb9805b9d771
parentcf0649500913f55420e54349a942906657e218a6
can: flexcan: add more quirks to describe RX path capabilities

[ Upstream commit c5c88591040ee7d84d037328eed9019d3ffab821 ]

Most flexcan IP cores support 2 RX modes:
- FIFO
- mailbox

Some IP core versions cannot receive CAN RTR messages via mailboxes.
This patch adds quirks to document this.

This information will be used in a later patch to switch from FIFO to
more performant mailbox mode at the expense of losing the ability to
receive RTR messages. This trade off is beneficial in certain use
cases.

Link: https://lore.kernel.org/all/20220107193105.1699523-5-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/flexcan.c