Kurt Van Dijck wrote:
> On Fri, Nov 06, 2009 at 04:58:52PM +0100, Oliver Hartkopp wrote:
>> Kurt,
>>
>> i wondered about the extra 'softing' directory in
>>
>>    /sys/class/net/can0/device/softing
>>
>> containing sysfs entries
>>
>>    firmware  freq  hardware  license  serial  txpending
> txpending should go
> the others are IMO good examples of device/driver dependant properties.
>> Should this be streamlined to be used by other CAN drivers?
>>
>> While having consensus now to use sysfs for these things, we should create
>> some common definitions.
> common definitions sound good.
> It would imply you'd use common (driver-independant) udev rules,
> which implies also bus-independant rules.
> If you don't know the specific bus, it gets hard to not conflict with
> bus specific properties.
>> Do you think the directory is necessary?
> I think yes, but it may be renamed to 'id' or something.

AFAICS there are files like vendor_id1, vendor_id2, etc. in
/sys/class/net/can0/device when you plug a PCMCIA card.

We should probably take a closer look if other devices already expose entries
like firmware revisions or serial numbers in sysfs. I assume having firmware
revisions is not that unusual.

If possible, i would tend to omit extra directories in the discussed
device/driver directories.

Regards,
Oliver

_______________________________________________
Socketcan-core mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-core

Reply via email to