projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xhci: Switch PPT ports to EHCI on shutdown.
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
usb
/
host
/
xhci.c
diff --git
a/drivers/usb/host/xhci.c
b/drivers/usb/host/xhci.c
index 5c3a3f75e4d54d59314f372794403c1a8ed089c2..c59d5b5b6c7d227a8005ca520e8b9badad5207b1 100644
(file)
--- a/
drivers/usb/host/xhci.c
+++ b/
drivers/usb/host/xhci.c
@@
-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);