Failed usb_reset_device() means only that reset is not yet completed.
If we will return success from bus_reset(), scsi layer will wait for 5 
seconds during which device will probably reconnect.

--- a/drivers/usb/storage/scsiglue.c    Fri Sep 27 18:20:19 2002
+++ b/drivers/usb/storage/scsiglue.c    Fri Sep 27 18:20:19 2002
@@ -243,7 +243,7 @@
     US_DEBUGP("usb_reset_device returns %d\n", result);
     if (result < 0) {
         scsi_lock(srb->host);
-        return FAILED;
+        return SUCCESS;
     }
 
     /* FIXME: This needs to lock out driver probing while it's working




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to