Loading
can: mcp251xfd: mcp251xfd_handle_rxif_ring_uinc(): factor out in separate function
stable inclusion from stable-v6.6.51 commit 2370061f07078b1c7cce461f09b129c20f9b4861 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAYRVR Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2370061f07078b1c7cce461f09b129c20f9b4861 -------------------------------- [ Upstream commit d49184b7b585f9da7ee546b744525f62117019f6 ] This is a preparation patch. Sending the UINC messages followed by incrementing the tail pointer will be called in more than one place in upcoming patches, so factor this out into a separate function. Also make mcp251xfd_handle_rxif_ring_uinc() safe to be called with a "len" of 0. Tested-by:Stefan Althöfer <Stefan.Althoefer@janztec.com> Tested-by:
Thomas Kopp <thomas.kopp@microchip.com> Signed-off-by:
Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Wen Zhiwei <wenzhiwei@kylinos.cn>