]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/usb/host/xhci-hub.c
usb: xhci: add quirk flag for broken PED bits
[mirror_ubuntu-zesty-kernel.git] / drivers / usb / host / xhci-hub.c
index 0ef16900efedd7783489ade75594b4d0da798318..1d41637a53e58ec7766a67c177964039b587c97c 100644 (file)
@@ -458,6 +458,12 @@ static void xhci_disable_port(struct usb_hcd *hcd, struct xhci_hcd *xhci,
                return;
        }
 
+       if (xhci->quirks & XHCI_BROKEN_PORT_PED) {
+               xhci_dbg(xhci,
+                        "Broken Port Enabled/Disabled, ignoring port disable request.\n");
+               return;
+       }
+
        /* Write 1 to disable the port */
        writel(port_status | PORT_PE, addr);
        port_status = readl(addr);