Alan Stern wrote:
On Wed, 23 Feb 2005, Glenn Maynard wrote:


On Wed, Feb 23, 2005 at 03:39:29PM -0500, Alan Stern wrote:

I ngelected to mention it above, but the stored strings should also be
used in core/devices.c for populating /proc/bus/usb/devices. And since the strings should be accessible through the usb_device and related
structures, other drivers would be able to use them directly. (For example, usb-storage does some string descriptor fetches that could be
eliminated.)

Does lsusb still do these queries, too? I've triggered errors by running "lsusb -v", and I've also had lsusb hang when those queries timed out. (I havn't looked to see if lsusb uses sysfs instead of libusb now, though.)


lsusb does make the queries (going through usbfs).  lsusb _has_ to use
libusb; sysfs only includes information for active configurations whereas
lsusb wants to print out information for all configurations.

Come to think of it, even when the proposed changes are made lsusb will
still cause problems, as will every program that reads the string
descriptors.  You can see why this whole mess doesn't really have a simple
solution...

IIRC, one reason this was tried (and dropped) is that some devices load new firmware which alters all/most/some of the device descriptors, so the kernel cache is incorrect... unless they are re-read after a firmware download.

Anybody else recall this?  or am I remembering it incorrectly?

--
~Randy


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to