On 17.11.2021 16:01:32, Stephane Grosjean wrote: > This patch adds under /sys/class/net/canX a new group named "peak_usb" > which contains a "dev_num" entry accessible for reading (display in > decimal of the numerical value stored in non-volatile memory of the USB > device) and also for writing (modification by the user of this value). > > Signed-off-by: Stephane Grosjean <s.grosjean@xxxxxxxxxxxxxxx> Please have a look at the ethtool eeprom interface: | ethtool -e|--eeprom-dump devname [raw on|off] [offset N] [length N] | ethtool -E|--change-eeprom devname [magic N] [offset N] [length N] [value N] That looks better than adding a custom sysfs entry. 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