Skip to content
Snippets Groups Projects
Commit 2a5d426c authored by Anup's avatar Anup Committed by Linux Build Service Account
Browse files

BACKPORT: can: mcp251xfd: mcp251xfd_ring_init(): check

TX-coalescing configuration

When changing the interface from CAN-CC to CAN-FD mode the old
coalescing parameters are re-used. This might cause problem, as the
configured parameters are too big for CAN-FD mode.

During testing an invalid TX coalescing configuration has been seen.
The problem should be been fixed in the previous patch, but add a
safeguard here to ensure that the number of TEF coalescing buffers (if
configured) is exactly the half of all TEF buffers.

Link: https://lore.kernel.org/all/20240805-mcp251xfd-fix-ringconfig-v1-2-72086f0ca5ee@pengutronix.de


Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
(cherry picked from commit ac2b81eb8b2d104033560daea886ee84531e3d0a)
Signed-off-by: default avatarAnup <quic_anupkulk@quicinc.com>
parent 8d49d6d0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment