That's exactly what I'm doing, but I ran into some issues. May be I haven't understood it properly.. But, how do I get the usb_device struct of this new (reset) device?
I will wait for your answer before making a fool out of myself by telling what I'm doing now.. Thanks.. --- Alan Stern <[EMAIL PROTECTED]> wrote: > 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 > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- 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
