When changing from CAN-CC to CAN-FD mode the ring and/or coalescing parameters might be too big. This series fixes the problem and adds a safeguard to detect broken coalescing configuration. Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> --- Marc Kleine-Budde (2): can: mcp251xfd: fix ring configuration when switching from CAN-CC to CAN-FD mode can: mcp251xfd: mcp251xfd_ring_init(): check TX-coalescing configuration drivers/net/can/spi/mcp251xfd/mcp251xfd-ram.c | 11 ++++++++- drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c | 34 +++++++++++++++++++++----- 2 files changed, 38 insertions(+), 7 deletions(-) --- base-commit: 14ab4792ee120c022f276a7e4768f4dcb08f0cdd change-id: 20240704-mcp251xfd-fix-ringconfig-6f6ee5f68242 Best regards, -- Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>