xhci: Switch PPT ports to EHCI on shutdown.
[pandora-kernel.git] / drivers / usb / host / xhci.c
index f7c0a2a..0518f73 100644 (file)
@@ -648,6 +648,9 @@ void xhci_shutdown(struct usb_hcd *hcd)
 {
        struct xhci_hcd *xhci = hcd_to_xhci(hcd);
 
+       if (xhci->quirks && XHCI_SPURIOUS_REBOOT)
+               usb_disable_xhci_ports(to_pci_dev(hcd->self.controller));
+
        spin_lock_irq(&xhci->lock);
        xhci_halt(xhci);
        spin_unlock_irq(&xhci->lock);