]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
can: kvaser_pciefd: Move reset of DMA RX buffers to the end of the ISR
authorMartin Jocic <martin.jocic@kvaser.com>
Thu, 20 Jun 2024 18:13:19 +0000 (20:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Sep 2024 09:11:32 +0000 (11:11 +0200)
commit6587b387cd543716050cf10f318c64f52e982613
treec1028960f73ca2bd106dcb5a88cd95d5b4f7b29c
parent00e4c69422c05724bd826554cfcce3c32b2bf3b0
can: kvaser_pciefd: Move reset of DMA RX buffers to the end of the ISR

[ Upstream commit 48f827d4f48f5243e37b9240029ce3f456d1f490 ]

A new interrupt is triggered by resetting the DMA RX buffers.
Since MSI interrupts are faster than legacy interrupts, the reset
of the DMA buffers must be moved to the very end of the ISR,
otherwise a new MSI interrupt will be masked by the current one.

Signed-off-by: Martin Jocic <martin.jocic@kvaser.com>
Link: https://lore.kernel.org/all/20240620181320.235465-2-martin.jocic@kvaser.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Stable-dep-of: dd885d90c047 ("can: kvaser_pciefd: Use a single write when releasing RX buffers")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/kvaser_pciefd.c