]> git.baikalelectronics.ru Git - kernel.git/commit
can: mcp251xfd: mcp251xfd_irq(): add missing can_rx_offload_threaded_irq_finish(...
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 15 Oct 2021 17:46:59 +0000 (19:46 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 6 Nov 2021 20:15:32 +0000 (21:15 +0100)
commit6cc4fc3620ffe063a84adea538ee113d6f444a6b
tree76e89bf48745ebba4f869ab9217fb25c8baa0823
parent62dbcb006e80793adfb8e1e9d52391ac0a6b1609
can: mcp251xfd: mcp251xfd_irq(): add missing can_rx_offload_threaded_irq_finish() in case of bus off

The function can_rx_offload_threaded_irq_finish() is needed to trigger
the NAPI thread to deliver read CAN frames to the networking stack.

This patch adds the missing call to can_rx_offload_threaded_irq_finish()
in case of a bus off, before leaving the interrupt handler to avoid
packet starvation.

Link: https://lore.kernel.org/all/20211106201526.44292-1-mkl@pengutronix.de
Fixes: 0e0a3ec8ee5a ("can: rx-offload: can_rx_offload_threaded_irq_finish(): add new function to be called from threaded interrupt")
Cc: stable@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c