USB Device Add reading wrong attributes on Linux
dmoseley at mvista.com
Wed Dec 3 09:21:09 PST 2008
I've noticed a case with a USB device on a linux host where some of the
attributes are not being properly initialized. Specifically the
can_wake_up and is_self_powered fields are incorrect because when HAL
reads the bmAttributes sysfs file it gets a read error. A restart of
hal usually brings the correct values in.
In the kernel code for the USB sysfs files there is a comment that
"Unforunately these attributes cannot be created before the uevent is
broadcast". I do see in the kernel where the sysfs file is being read
by HAL but getting an error. Has anyone else dealt with this? Should
there be a retry of some kind in HAL to handle this?
More information about the hal