firmware/br-ext-chip-goke/board/gk7205v200/kernel/patches/00_drivers-usb-host-xhci-pl...

13 lines
421 B
Diff

--- linux-4.9.37/drivers/usb/host/xhci-plat.c 2017-07-12 16:42:41.000000000 +0300
+++ linux-4.9.y/drivers/usb/host/xhci-plat.c 2021-06-07 13:01:34.000000000 +0300
@@ -220,6 +220,9 @@
goto disable_clk;
}
+ if (device_property_read_bool(&pdev->dev, "usb2-lpm-disable"))
+ xhci->quirks |= XHCI_HW_LPM_DISABLE;
+
if (device_property_read_bool(&pdev->dev, "usb3-lpm-capable"))
xhci->quirks |= XHCI_LPM_SUPPORT;