2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/net/can/rockchip
Vincent Mailhol b803c4a4f7 can: dev: add struct data_bittiming_params to group FD parameters
This is a preparation patch for the introduction of CAN XL.

CAN FD and CAN XL uses similar bittiming parameters. Add one level of
nesting for all the CAN FD parameters. Typically:

  priv->can.data_bittiming;

becomes:

  priv->can.fd.data_bittiming;

This way, the CAN XL equivalent (to be introduced later) would be:

  priv->can.xl.data_bittiming;

Add the new struct data_bittiming_params which contains all the data
bittiming parameters, including the TDC and the callback functions.

This done, update all the CAN FD drivers to make use of the new
layout.

Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://patch.msgid.link/20250501171213.2161572-2-mailhol.vincent@wanadoo.fr
[mkl: fix rcar_canfd]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2025-05-21 14:33:28 +02:00
..
Kconfig can: rockchip_canfd: Drop obsolete dependency on COMPILE_TEST 2024-11-04 18:01:06 +01:00
Makefile can: rockchip_canfd: add stats support for errata workarounds 2024-09-04 14:41:53 +02:00
rockchip_canfd-core.c can: dev: add struct data_bittiming_params to group FD parameters 2025-05-21 14:33:28 +02:00
rockchip_canfd-ethtool.c can: rockchip_canfd: add hardware timestamping support 2024-09-04 14:41:53 +02:00
rockchip_canfd-rx.c can: rockchip_canfd: add support for CAN_CTRLMODE_LOOPBACK 2024-09-04 14:41:53 +02:00
rockchip_canfd-timestamp.c can: dev: add struct data_bittiming_params to group FD parameters 2025-05-21 14:33:28 +02:00
rockchip_canfd-tx.c can: rockchip_canfd: fix return type of rkcanfd_start_xmit() 2024-09-09 08:17:06 +02:00
rockchip_canfd.h can: rockchip_canfd: fix return type of rkcanfd_start_xmit() 2024-09-09 08:17:06 +02:00