All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC remove CAN_CTRLMODE_XL_ERR_SIGNAL
@ 2025-11-09 21:07 Oliver Hartkopp
  2025-11-10 21:22 ` Vincent Mailhol
  0 siblings, 1 reply; 9+ messages in thread
From: Oliver Hartkopp @ 2025-11-09 21:07 UTC (permalink / raw)
  To: Vincent Mailhol, linux-can

Hi Vincent,

I've been playing with the PEAK CAN XL bitrate tool again and it gave me 
a new idea:

There were settings for different bitrates and the belonging/resulting 
flags for TMS and ES (error-signalling).

Staring at the options we have only three options for the CAN XL support 
aka "xl on":

1. Providing CC/FD/XL bitrates => ES on, TMS off (mixed-mode)

2. Providing only CC/XL bitrates => ES off, TMS off (CANXL-only)

3. Providing only CC/XL bitrates => ES off, TMS on (CANXL-only)

Therefore we only need "tms" as an additional option when xl is on.

The error signalling "on" automatically results from the availability of 
"fd on" and the FD bitrate.

Examples:

1. Providing CC/FD/XL bitrates => ES on, TMS off

ip link set can0 type can bitrate 500000 fd on dbitrate 2000000 xl on 
xbitrate 4000000

2. Providing only CC/XL bitrates => ES off, TMS off

ip link set can0 type can bitrate 500000 xl on xbitrate 4000000

3. Providing only CC/XL bitrates => ES off, TMS on

ip link set can0 type can bitrate 500000 xl on xbitrate 10000000 tms on

That's simple and provides only the needed switches, which makes 
CAN_CTRLMODE_XL_ERR_SIGNAL obsolete in the netlink API.

What do you think about this approach?

Best regards,
Oliver


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-11-17 11:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-09 21:07 RFC remove CAN_CTRLMODE_XL_ERR_SIGNAL Oliver Hartkopp
2025-11-10 21:22 ` Vincent Mailhol
2025-11-11 14:12   ` Oliver Hartkopp
2025-11-14 15:17     ` Stéphane Grosjean
2025-11-14 18:20       ` Oliver Hartkopp
2025-11-15 13:06     ` Vincent Mailhol
2025-11-15 13:52       ` Oliver Hartkopp
2025-11-16 21:34         ` Vincent Mailhol
2025-11-17 11:25           ` Oliver Hartkopp

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.