Re: [RFC PATCH 07/13] can: slcan: set bitrate by CAN device driver API
From: Marc Kleine-Budde
Date: Tue Jun 07 2022 - 06:09:39 EST
On 07.06.2022 11:47:46, Dario Binacchi wrote:
> It allows to set the bitrate via ip tool, as it happens for the other
> CAN device drivers. It still remains possible to set the bitrate via
> slcand or slcan_attach utilities. In case the ip tool is used, the
> driver will send the serial command to the adapter.
>
> The struct can_bittiming_const and struct can_priv::clock.freq has been
> set with empirical values that allow you to get a correct bit timing, so
> that the slc_do_set_bittiming() can be called.
The CAN framework supports setting of fixed bit rates. Look for
can327_bitrate_const in
| https://lore.kernel.org/all/20220602213544.68273-1-max@xxxxxxxxx/
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature