OSDN Git Service

can: mcp25xxfd: rx-path: reduce number of SPI core requests to set UINC bit
authorUrsula Maplehurst <ursula@kangatronix.co.uk>
Thu, 26 Nov 2020 13:21:41 +0000 (14:21 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 29 Nov 2020 20:19:12 +0000 (21:19 +0100)
commit1f652bb6bae7f211f3131ddbc380bb839680068f
tree5056ade913745c82d3cc7fcfb6cae777870fd5dd
parent4843ad9b613aa72258bd122d7884d311dad334e4
can: mcp25xxfd: rx-path: reduce number of SPI core requests to set UINC bit

Reduce the number of separate SPI core requests when setting the UINC bit in
the RX FIFO, and instead batch them up into a single SPI core request.

Link: https://github.com/marckleinebudde/linux/issues/4
Link: https://lore.kernel.org/r/20201126132144.351154-3-mkl@pengutronix.de
Tested-by: Thomas Kopp <thomas.kopp@microchip.com>
Signed-off-by: Ursula Maplehurst <ursula@kangatronix.co.uk>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c
drivers/net/can/spi/mcp251xfd/mcp251xfd.h