]> 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)
commit32415bd71329084bf325d942cff91942d9307b23
tree87cf035dffe14e26a0e12a7e169e5caff5f7311d
parent7762a8ff28739ac72554e640049b4222a6605a51
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