xhci: xhci-pci: use Intel specific helper to find USB3 LPM incapable ports
Call the Intel specific ACPI helper to check if Intel USB ports are
USB3 Link Power Management incapable.
Some Intel hosts lack the ACPI DSM method normally used to detect these
ports.
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index ba8600da..59c4691 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -373,7 +373,10 @@
}
for (i = 0; i < hdev->maxchild; i++) {
- ret = usb_acpi_port_lpm_incapable(hdev, i);
+ if (xhci->quirks & XHCI_INTEL_HOST)
+ ret = usb_acpi_intel_port_lpm_incapable(hdev, i);
+ else
+ ret = usb_acpi_port_lpm_incapable(hdev, i);
dev_dbg(&hdev->dev, "port-%d disable U1/U2 _DSM: %d\n", i + 1, ret);