]> git.baikalelectronics.ru Git - kernel.git/commit
can: rcar_canfd: fix channel specific IRQ handling for RZ/G2L
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 25 Oct 2022 15:56:56 +0000 (16:56 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 27 Oct 2022 07:30:59 +0000 (09:30 +0200)
commitc7a9efab861e935326f477de778d36a63ed00420
treee8fc2b297018f12ab45e4738a7cd255876c58da2
parent10dedc50e2f59165ee8be58d68132f2bc659af8e
can: rcar_canfd: fix channel specific IRQ handling for RZ/G2L

RZ/G2L has separate channel specific IRQs for transmit and error
interrupts. But the IRQ handler processes both channels, even if there
no interrupt occurred on one of the channels.

This patch fixes the issue by passing a channel specific context
parameter instead of global one for the IRQ register and the IRQ
handler, it just handles the channel which is triggered the interrupt.

Fixes: 7da7f5287a90 ("can: rcar_canfd: Add support for RZ/G2L family")
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/all/20221025155657.1426948-3-biju.das.jz@bp.renesas.com
Cc: stable@vger.kernel.org
[mkl: adjust commit message]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_canfd.c