Re: About sysfs usage by socket-can drivers

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

 



On 7/23/20 4:50 PM, Stéphane Grosjean wrote:
> We've several pending requests regarding:
> - changing the default clock value,

The input clock rate for the CAN IP Core?

> - reading the bus load value,

..as calculated by the USB device?

> - using a flashed device id. to better control the can interface number,

Can you make use of dev_id/dev_port
https://elixir.bootlin.com/linux/latest/source/include/linux/netdevice.h#L1687

> - identifying the (USB) channel

Does udev offer all needed information? E.g.:

    udevadm test /sys/class/net/can0

> Adding attributes under /sys/class/net/canX (or into a specific/private group) could be a solution.

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: OpenPGP digital 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