Re: error handing for usb3.0 devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi Greg:

> Allways run your patches through checkpatch.pl so someone doesn't point
> out the formatting issues in it when you send it to the mailing list :)
Here it is

diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 090469e..2192776 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -4316,6 +4316,9 @@ fail:
        if (retval) {
                hub_port_disable(hub, port1, 0);
                update_devnum(udev, devnum);    /* for disconnect processing */
+               if(udev->speed == USB_SPEED_SUPER)
+                       hub_port_reset(hub, port1, udev,
+                               HUB_BH_RESET_TIME, true);
        }
        mutex_unlock(&usb_address0_mutex);
        return retval;
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 090469e..2192776 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -4316,6 +4316,9 @@ fail:
 	if (retval) {
 		hub_port_disable(hub, port1, 0);
 		update_devnum(udev, devnum);	/* for disconnect processing */
+		if(udev->speed == USB_SPEED_SUPER)
+			hub_port_reset(hub, port1, udev,
+				HUB_BH_RESET_TIME, true);
 	}
 	mutex_unlock(&usb_address0_mutex);
 	return retval;

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux