aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/host/xhci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index 5d7d4e951ea..7c8d70fbe11 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -714,6 +714,7 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
714 return retval; 714 return retval;
715 } 715 }
716 716
717 spin_unlock_irq(&xhci->lock);
717 /* Re-setup MSI-X */ 718 /* Re-setup MSI-X */
718 if (hcd->irq) 719 if (hcd->irq)
719 free_irq(hcd->irq, hcd); 720 free_irq(hcd->irq, hcd);
@@ -736,6 +737,7 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
736 hcd->irq = pdev->irq; 737 hcd->irq = pdev->irq;
737 } 738 }
738 739
740 spin_lock_irq(&xhci->lock);
739 /* step 4: set Run/Stop bit */ 741 /* step 4: set Run/Stop bit */
740 command = xhci_readl(xhci, &xhci->op_regs->command); 742 command = xhci_readl(xhci, &xhci->op_regs->command);
741 command |= CMD_RUN; 743 command |= CMD_RUN;