]> git.baikalelectronics.ru Git - kernel.git/commit
can: grcan: only use the NAPI poll budget for RX
authorAndreas Larsson <andreas@gaisler.com>
Fri, 29 Apr 2022 08:46:56 +0000 (10:46 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 29 Apr 2022 10:09:32 +0000 (12:09 +0200)
commitfd0ba5f30f0d505be2dccf3ce6f207650c16bd34
treed72e93aad3f8672646b6c3fef906815a0cbf4c98
parent05429b48eec083c923ebd0490bbead2e7fa6f8ed
can: grcan: only use the NAPI poll budget for RX

The previous split budget between TX and RX made it return not using
the entire budget but at the same time not having calling called
napi_complete. This sometimes led to the poll to not be called, and at
the same time having TX and RX interrupts disabled resulting in the
driver getting stuck.

Fixes: fa136ded8f11 ("can: grcan: Add device driver for GRCAN and GRHCAN cores")
Link: https://lore.kernel.org/all/20220429084656.29788-4-andreas@gaisler.com
Cc: stable@vger.kernel.org
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/grcan.c