All dwc3 based xhci host controller supports USB3.0 LPM functionality.
Therefore enable quirk flag to support it for dwc3 xhci host driver.

Signed-off-by: Pratyush Anand <[email protected]>
Tested-by: Aymen Bouattay <[email protected]>
---
 drivers/usb/dwc3/host.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c
index a362ed9..b0e4669 100644
--- a/drivers/usb/dwc3/host.c
+++ b/drivers/usb/dwc3/host.c
@@ -86,6 +86,7 @@ int dwc3_host_init(struct dwc3 *dwc)
        hcd = platform_get_drvdata(xhci);
        xhci_dev = hcd_to_xhci(hcd);
        xhci_dev->shared_hcd->phy = dwc->usb3_phy;
+       xhci_dev->quirks |= XHCI_LPM_SUPPORT;
 
        return 0;
 
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to