Files
ack-tegra/include/linux
Vincent Mailhol 9892339cf0 can: calc_bittiming: add PWM calculation
Perform the PWM calculation according to CiA recommendations.

Note that for databitrates greater than 5 MBPS, tqmin is less than
CAN_PWM_NS_MAX (which is defined to 200 nano seconds), consequently,
the result of the division:

  DIV_ROUND_UP(xl_ns, CAN_PWM_NS_MAX)

is one and thus the for loop automatically stops on the first
iteration giving a single PWM symbol per bit as expected. Because of
that, there is no actual need for a separate conditional branch for
when the databitrate is greater than 5 MBPS.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Link: https://patch.msgid.link/20251126-canxl-v8-10-e7e3eb74f889@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2025-11-26 11:20:43 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-05 15:06:03 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-07-31 11:28:03 -04:00
…
…
…
…
…
…
…
…
2025-09-24 02:48:05 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-08-14 10:37:33 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-23 11:13:22 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-12 10:47:42 +01:00
…
2025-08-21 13:58:07 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-10-29 18:28:29 -07:00
…
2025-09-13 17:32:44 -07:00
…
…
…
…
…
2025-08-29 13:39:53 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-08-02 12:06:10 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-23 11:13:22 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-13 16:54:50 -07:00
…
…
…
…
…
…
…
2025-09-17 15:58:29 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-04 19:10:33 -08:00
…
…
…
…
2025-09-23 13:28:20 -04:00
…
…
…
…
…
…
2025-09-19 14:26:16 +02:00
2025-09-25 09:23:47 +02:00
…
…
…
…
…
…
…
…
…
2025-08-18 14:23:09 +02:00
2025-08-18 14:23:09 +02:00
…
…
…
…
…
…
…
…
2025-10-01 07:55:42 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-13 16:55:07 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2025-08-24 11:41:11 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-08-28 13:14:50 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-20 17:57:40 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-08-17 12:46:25 +02:00
…
…
…
…
…
…
2025-09-09 10:27:01 -06:00
…
…
…
…
…
…
…
2025-10-01 07:24:55 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-08-02 12:01:37 -07:00
…
…
…
…
…
…
…
…