On 12/15/06, Alan Stern <[EMAIL PROTECTED]> wrote: > > Mister Greg, how to change configuration _inside_ the driver? Device > > was made to be > > working on second usb config after one reconnect/device change, i've > > lost whole day > > trying to make something with that. After all, usb_set_configuration() > > isn't even > > EXPORT()ED at all ! > > It isn't exported because, generally speaking, drivers can't use it. If > your driver called usb_set_configuration() from within its probe routine, > it would hang. That's because usb_set_configuration would unregister the > interface being probed by your driver, so it would try to call your > driver's disconnect routine, but first it would have to wait for the probe > to finish -- deadlock.
Ehh... USB, Devices are designed to change configurations, linux-usb isn't. Without much technical details -- this is a bed design. No? That TI USB, with usb-serial only propose, is masterpiece of bed hardware design, and it reveals bed sides of linux-usb. Maybe that's because it's universal... -- -o--=O`C #oo'L O <___=E M ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
