aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/host/xhci-hub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c
index 9ef5f68e3213..00721e8807ab 100644
--- a/drivers/usb/host/xhci-hub.c
+++ b/drivers/usb/host/xhci-hub.c
@@ -610,12 +610,14 @@ static int xhci_enter_test_mode(struct xhci_hcd *xhci,
610 610
611 /* Disable all Device Slots */ 611 /* Disable all Device Slots */
612 xhci_dbg(xhci, "Disable all slots\n"); 612 xhci_dbg(xhci, "Disable all slots\n");
613 spin_unlock_irqrestore(&xhci->lock, *flags);
613 for (i = 1; i <= HCS_MAX_SLOTS(xhci->hcs_params1); i++) { 614 for (i = 1; i <= HCS_MAX_SLOTS(xhci->hcs_params1); i++) {
614 retval = xhci_disable_slot(xhci, NULL, i); 615 retval = xhci_disable_slot(xhci, NULL, i);
615 if (retval) 616 if (retval)
616 xhci_err(xhci, "Failed to disable slot %d, %d. Enter test mode anyway\n", 617 xhci_err(xhci, "Failed to disable slot %d, %d. Enter test mode anyway\n",
617 i, retval); 618 i, retval);
618 } 619 }
620 spin_lock_irqsave(&xhci->lock, *flags);
619 /* Put all ports to the Disable state by clear PP */ 621 /* Put all ports to the Disable state by clear PP */
620 xhci_dbg(xhci, "Disable all port (PP = 0)\n"); 622 xhci_dbg(xhci, "Disable all port (PP = 0)\n");
621 /* Power off USB3 ports*/ 623 /* Power off USB3 ports*/