ChangeSet 1.925.62.1, 2003/02/07 16:36:33+11:00, [EMAIL PROTECTED]

[PATCH] USB: Patches for the ECONNRESET error (2.5)

Matt Dharm asked me to send these bug-fix patches directly to you.  They
correct the error-code handling in usb-storage.  The change for 2.5 is
pretty minor; it only affects debugging output.  But the change for 2.4 is
more pervasive, and according to Tom Collins it is the key to making a usb
hard disk work on his MIPS-based system.


diff -Nru a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c
--- a/drivers/usb/storage/transport.c   Tue Feb 18 16:46:32 2003
+++ b/drivers/usb/storage/transport.c   Tue Feb 18 16:46:32 2003
@@ -314,7 +314,7 @@
                return USB_STOR_XFER_ERROR;
 
        /* the transfer was cancelled, presumably by an abort */
-       case -ENODEV:
+       case -ECONNRESET:
                US_DEBUGP("-- transfer cancelled\n");
                return USB_STOR_XFER_ERROR;
 



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to