Re: [RFC PATCH 12/14] can: netlink: add CAN XL support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04.12.2024 12:35:43, Oliver Hartkopp wrote:
> > > > Also, the main reason for not creating the nest was that I thought
> > > > that the current bittiming API was stable. I was not aware of the
> > > > current flaw on how to divide tseg1_min. Maybe we should first discuss
> > > > how to solve this issue for CAN FD?
> > > 
> > > I like the current way how you added the CAN XL support.
> > > It maintains the known usage pattern - and the way how CAN XL bit timings
> > > are defined is identical to CAN FD (including TDC).
> > > 
> > > Is the separation of propseg and tseg1 that relevant?
> > > Does it really need to be exposed to the user?
> > 
> > There are IIRC at least 2 CAN-FD cores where the prop segment and phase
> > segment 1 for the data bit timing have not the same width. This means we
> > have to change the bittiming_const in the kernel.
> > 
> > A struct in netlink means we cannot change it.
> 
> But are we not already in this situation with CAN FD that we can not change
> the bittiming (const) in the userspace API?

Yes, we have to support it. But we can add a new nested type that
serializes the individual members of an improved struct bittiming_const.
The old user space tools will just keep working, iproute2 can be updated
to use the new bittiming_const if it's available and fall back to the
existing one.

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux