ChangeSet 1.2181.4.71, 2005/03/24 15:31:13-08:00, [EMAIL PROTECTED]

        [PATCH] USB: usbnet minor bugfixes
        
        Two bugfixes to usbnet.  The important one is that it's OK when the
        minidriver doesn't want to use a status endpoint.  That shouldn't
        be treated as an error ... errors prevent probe() from succeeding!
        
        The minor fix is that software driven interface shutdown should neither
        be accounted as an error, nor generate a diagnostic.
        
        Signed-off-by: David Brownell <[EMAIL PROTECTED]>
        Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>



 usbnet.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)


diff -Nru a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c
--- a/drivers/usb/net/usbnet.c  2005-03-30 15:19:14 -08:00
+++ b/drivers/usb/net/usbnet.c  2005-03-30 15:19:14 -08:00
@@ -390,7 +390,7 @@
        unsigned        period;
 
        if (!dev->driver_info->status)
-               return -ENODEV;
+               return 0;
 
        pipe = usb_rcvintpipe (dev->udev,
                        dev->status->desc.bEndpointAddress
@@ -3319,6 +3319,11 @@
                switch (urb->status) {
                case -EPIPE:
                        defer_kevent (dev, EVENT_TX_HALT);
+                       break;
+
+               /* software-driven interface shutdown */
+               case -ECONNRESET:               // async unlink
+               case -ESHUTDOWN:                // hardware gone
                        break;
 
                // like rx, tx gets controller i/o faults during khubd delays
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to