]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:18 +0000 (10:15 +0200)
commitfba5f41f1536086e0c24d444865f035ebf300825
tree2c5b7b6d7420306505d7985cc148d479bfbae9f5
parent7204335d1991c23fc615ab76f31f175748a578e1
can: flexcan: Add quirk to handle separate interrupt lines for mailboxes

[ Upstream commit 8c652cf030a769fbfc73cfc280ed3f1656343c35 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/flexcan/flexcan-core.c
drivers/net/can/flexcan/flexcan.h