can: sun4i: handle overrun in RX FIFO
authorGerhard Bertelsmann <info@gerhard-bertelsmann.de>
Mon, 6 Nov 2017 17:16:56 +0000 (18:16 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 10 Nov 2017 08:15:28 +0000 (09:15 +0100)
commit4dcf924c2eda0c47a5c53b7703e3dc65ddaa8920
treee742435ca056392373c7a028cef2a4c65eff3c80
parentfb5f0b3ef69b95e665e4bbe8a3de7201f09f1071
can: sun4i: handle overrun in RX FIFO

SUN4Is CAN IP has a 64 byte deep FIFO buffer. If the buffer is not
drained fast enough (overrun) it's getting mangled. Already received
frames are dropped - the data can't be restored.

Signed-off-by: Gerhard Bertelsmann <info@gerhard-bertelsmann.de>
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sun4i_can.c