]> www.infradead.org Git - users/jedix/linux-maple.git/commit
can: flexcan: Add quirk to handle separate interrupt lines for mailboxes
authorCiprian Marian Costea <ciprianmarian.costea@oss.nxp.com>
Mon, 13 Jan 2025 12:07:03 +0000 (14:07 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 19 Feb 2025 10:06:15 +0000 (11:06 +0100)
commit8c652cf030a769fbfc73cfc280ed3f1656343c35
tree90bbb5d48451dc1ad3d8649912535f97dbd24912
parent51723790b718800014dc905ace0f8ffacd07f31e
can: flexcan: Add quirk to handle separate interrupt lines for mailboxes

Introduce 'FLEXCAN_QUIRK_SECONDARY_MB_IRQ' quirk to handle a FlexCAN
hardware module integration particularity where two ranges of mailboxes
are controlled by separate hardware interrupt lines.
The same 'flexcan_irq' handler is used for both separate mailbox interrupt
lines, with no other changes.

Signed-off-by: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com>
Reviewed-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://patch.msgid.link/20250113120704.522307-3-ciprianmarian.costea@oss.nxp.com
[mkl: flexcan_open(): change order and free irq_secondary_mb first]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan/flexcan-core.c
drivers/net/can/flexcan/flexcan.h