> It depends. If you think usb_reset_device is likely > to improve the > situation, then go ahead and call it. Remember, > though, that devices > automatically get reset when they are plugged in to > the computer, so > another reset may not help. Remember also that you > can easily get stuck > in an infinite loop if the reset doesn't fix the > problem. > > It's always safe to print a warning message to the > system log and have > your probe routine return an error. The error > should not be -ENODEV, > however -- that particular code means some other > driver's probe routine > should be tried. > > Alan Stern >
Thanks! May be I'm doing something wrong.. I do a reset for 5 times, and if the device still fails, I return ENODEV from my probe function. But, USB core goes to the next devices ignoring this. usb 1-4.1: reset high speed USB device using ehci_hcd and address 13 . **fails** . usb 1-4.1: reset high speed USB device using ehci_hcd and address 13 . **fails** . usb 1-4.1: reset high speed USB device using ehci_hcd and address 13 . **fails** . // Now, I return ENODEV from probe usb 1-4.2: new high speed USB device using ehci_hcd and address 14 ...... usb 1-4.3: new high speed USB device using ehci_hcd and address 14 __________________________________________________ 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 _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users