1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/can/spi/mcp251xfd
Marc Kleine-Budde ac2b81eb8b 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: Marc Kleine-Budde <mkl@pengutronix.de>
2024-08-06 09:52:13 +02:00
..
Kconfig can: Kconfig: add CONFIG_CAN_RX_OFFLOAD 2022-06-11 17:11:02 +02:00
Makefile can: mcp251xfd: ethtool: add support 2022-03-13 09:45:35 +01:00
mcp251xfd-chip-fifo.c can: mcp251xfd: introduce struct mcp251xfd_tx_ring::nr and ::fifo_nr and make use of it 2022-02-24 08:46:59 +01:00
mcp251xfd-core.c can: mcp251xfd: clarify the meaning of timestamp 2024-06-28 23:48:11 +02:00
mcp251xfd-crc16.c can: mcp251xfd: rename all remaining occurrence to mcp251xfd 2020-09-30 21:55:28 +02:00
mcp251xfd-dump.c can: mcp251xfd: properly indent labels 2024-06-28 23:48:11 +02:00
mcp251xfd-dump.h can: mcp251xfd: add dev coredump support 2021-03-30 11:14:49 +02:00
mcp251xfd-ethtool.c can: mcp251xfd: mcp251xfd_ring_set_ringparam(): assign missing tx_obj_num_coalesce_irq 2023-02-02 10:33:27 +01:00
mcp251xfd-ram.c can: mcp251xfd: fix ring configuration when switching from CAN-CC to CAN-FD mode 2024-08-06 09:52:00 +02:00
mcp251xfd-ram.h can: mcp251xfd: ram: coalescing support 2022-03-13 09:45:35 +01:00
mcp251xfd-regmap.c can: mcp251xfd: properly indent labels 2024-06-28 23:48:11 +02:00
mcp251xfd-ring.c can: mcp251xfd: mcp251xfd_ring_init(): check TX-coalescing configuration 2024-08-06 09:52:13 +02:00
mcp251xfd-rx.c can: mcp251xfd: rx: add workaround for erratum DS80000789E 6 of mcp2518fd 2024-06-28 23:48:12 +02:00
mcp251xfd-tef.c can: mcp251xfd: tef: update workaround for erratum DS80000789E 6 of mcp2518fd 2024-06-28 23:48:12 +02:00
mcp251xfd-timestamp.c can: mcp251xfd: clarify the meaning of timestamp 2024-06-28 23:48:11 +02:00
mcp251xfd-tx.c can: mcp251xfd: fix infinite loop when xmit fails 2024-06-21 10:50:20 +02:00
mcp251xfd.h can: mcp251xfd: tef: prepare to workaround broken TEF FIFO tail index erratum 2024-06-28 23:48:12 +02:00