usb: cdns3: imx: enable runtime pm by default
authorPeter Chen <peter.chen@nxp.com>
Mon, 28 Sep 2020 07:34:19 +0000 (15:34 +0800)
committerPeter Chen <peter.chen@nxp.com>
Thu, 10 Dec 2020 00:45:26 +0000 (08:45 +0800)
Enable runtime pm by default

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/cdns3/cdns3-imx.c

index 54a2d70a9c730534e3b0a9a71c98bf77faf01a89..22a56c4dce678d507a80a27378412b1f91a30a8d 100644 (file)
@@ -151,6 +151,7 @@ static int cdns_imx_platform_suspend(struct device *dev,
        bool suspend, bool wakeup);
 static struct cdns3_platform_data cdns_imx_pdata = {
        .platform_suspend = cdns_imx_platform_suspend,
+       .quirks           = CDNS3_DEFAULT_PM_RUNTIME_ALLOW,
 };
 
 static const struct of_dev_auxdata cdns_imx_auxdata[] = {
@@ -206,7 +207,6 @@ static int cdns_imx_probe(struct platform_device *pdev)
        device_set_wakeup_capable(dev, true);
        pm_runtime_set_active(dev);
        pm_runtime_enable(dev);
-       pm_runtime_forbid(dev);
 
        return ret;
 err: