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 <pratyush.an...@st.com>
Tested-by: Aymen Bouattay <aymen.bouat...@st.com>
---
 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to