MLK-16604-1 usb: host: xhci-plat: add XHCI_MISSING_CAS quirk
authorLi Jun <jun.li@nxp.com>
Tue, 28 Nov 2017 13:43:18 +0000 (21:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:55:47 +0000 (15:55 -0500)
i.MX8MQ USB3 host needs XHCI_MISSING_CAS quirk to warm reset the port to
enum the USB3 device plugged in while system sleep, as the port state is
stuck in polling mode after resume.

Signed-off-by: Li Jun <jun.li@nxp.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/host/xhci-plat.c

index 914e743..66d7383 100644 (file)
@@ -249,6 +249,9 @@ static int xhci_plat_probe(struct platform_device *pdev)
        if (device_property_read_bool(sysdev, "usb3-lpm-capable"))
                xhci->quirks |= XHCI_LPM_SUPPORT;
 
+       if (device_property_read_bool(sysdev, "usb3-resume-missing-cas"))
+               xhci->quirks |= XHCI_MISSING_CAS;
+
        if (device_property_read_bool(&pdev->dev, "quirk-broken-port-ped"))
                xhci->quirks |= XHCI_BROKEN_PORT_PED;