]> git.baikalelectronics.ru Git - kernel.git/commit
can: flexcan: make use of rx-offload's irq_offload_fifo
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 10 May 2015 13:26:58 +0000 (15:26 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Feb 2017 14:13:39 +0000 (15:13 +0100)
commitcb4c533e1a6a161f26ef30f75925f930edc6d3a4
tree87cf035dffe14e26a0e12a7e169e5caff5f7311d
parent175f60a752e38dc1b679a622a88f3b5605c8df4f
can: flexcan: make use of rx-offload's irq_offload_fifo

This patch converts the flexcan driver to make use of the rx-offload
can_rx_offload_irq_offload_fifo() helper function. The idea is to read
the CAN frames already in the interrupt context, as the depth of the
flexcan HW FIFO is too shallow, resulting in too many missed frames.
During a normal NAPI poll the frames are the pushed into the upper
layers.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/flexcan.c