xhci: prevent bus_suspend if SS port resuming in phase 1
[deliverable/linux.git] / drivers / usb / host / xhci-hub.c
index 7df8878cc37bcca52815f1402d1843d97b820681..fdca8edc5836fb3155796e55a3c72f643e62855c 100644 (file)
@@ -1123,10 +1123,10 @@ int xhci_bus_suspend(struct usb_hcd *hcd)
        spin_lock_irqsave(&xhci->lock, flags);
 
        if (hcd->self.root_hub->do_remote_wakeup) {
-               if (bus_state->resuming_ports) {
+               if (bus_state->resuming_ports ||        /* USB2 */
+                   bus_state->port_remote_wakeup) {    /* USB3 */
                        spin_unlock_irqrestore(&xhci->lock, flags);
-                       xhci_dbg(xhci, "suspend failed because "
-                                               "a port is resuming\n");
+                       xhci_dbg(xhci, "suspend failed because a port is resuming\n");
                        return -EBUSY;
                }
        }
This page took 0.029785 seconds and 5 git commands to generate.