xhci: Switch PPT ports to EHCI on shutdown.
[firefly-linux-kernel-4.4.55.git] / drivers / usb / host / xhci.c
index 5c3a3f75e4d54d59314f372794403c1a8ed089c2..c59d5b5b6c7d227a8005ca520e8b9badad5207b1 100644 (file)
@@ -659,6 +659,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);