MLK-16715-7 usb: chipidea: imx: add "ci-disable-lpm" quirk
authorPeter Chen <peter.chen@nxp.com>
Mon, 11 Dec 2017 03:29:07 +0000 (11:29 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:51:18 +0000 (14:51 -0500)
Some chipidea hardware needs to disable low power mode for controller
due to IC issue or hardware issue, add one quirk for it.

Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Documentation/devicetree/bindings/usb/ci-hdrc-usb2.txt
drivers/usb/chipidea/ci_hdrc_imx.c

index 25f7340..1fc8a56 100644 (file)
@@ -78,6 +78,7 @@ Optional properties:
   needs to make sure it does not send more than 90%
   maximum_periodic_data_per_frame. The use case is multiple transactions, but
   less frame rate.
+- ci-disable-lpm: Some chipidea hardware need to disable low power mode
 
 i.mx specific properties
 - fsl,usbmisc: phandler of non-core register device, with one
index 74408d2..7f68b5e 100644 (file)
@@ -529,6 +529,11 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
        if (pdata.flags & CI_HDRC_SUPPORTS_RUNTIME_PM)
                data->supports_runtime_pm = true;
 
+       if (of_find_property(np, "ci-disable-lpm", NULL)) {
+               data->supports_runtime_pm = false;
+               pdata.flags &= ~CI_HDRC_SUPPORTS_RUNTIME_PM;
+       }
+
        if (of_usb_get_phy_mode(dev->of_node) == USBPHY_INTERFACE_MODE_HSIC) {
                pdata.flags |= CI_HDRC_IMX_IS_HSIC;
                data->usbmisc_data->hsic = 1;