can: at91_can: RX queue could get stuck at high bus load

[ Upstream commit 43200a4480 ]

At high bus load it could happen that "at91_poll()" enters with all RX
message boxes filled up. If then at the end the "quota" is exceeded as
well, "rx_next" will not be reset to the first RX mailbox and hence the
interrupts remain disabled.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Tested-by: Amr Bekhit <amrbekhit@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Wolfgang Grandegger 2016-06-13 15:44:19 +02:00 • committed by Sasha Levin
commit 5c6fe0bcd2