On Wed, 23 Feb 2005, Greg KH wrote: > On Tue, Feb 22, 2005 at 01:38:03PM -0500, Alan Stern wrote: > > > > A less general solution that could suffice for your problem would be to > > have the kernel store the Manufacturer, Product, and Serial strings (and > > also the Configuration and Interface name strings) rather than query the > > device every time those sysfs files are accessed. This could be done > > without much trouble. Part of the reason it hasn't is that devices are > > allowed to change those strings at any time -- although I'm not aware of > > any which do. > > I think it's about time to just do this. We cause too many problems > with out it, and a number of distros have been shipping patches that > basically do this for a few years now with out any reported issues. > > I'll drag up an old patch for this and add it to the tree and see who > screams :)
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.) Alan Stern ------------------------------------------------------- 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 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel