On Fri, 21 Apr 2006, usb usb wrote: > Hello, > > When one of my USB devices (all 2.0) fails to properly > config. I'm calling usb_reset_device() on the failed > one. > Since I detect it at probe(), I shouldn't have to > worry about device locking (from docs). Is this the > right way of doing it?
It is a right way, yes. > When it gets reset, how do I > reprobe the failed device? Since the call to usb_reset_device() is already in your probe routine, all you need to do is add a "goto" to go back to the start of the routine. It might be a good idea to keep a counter, so that if the device fails 3 times in a row you can return an error instead of retrying forever. Alan Stern ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
