diff options
| author | Peter Chen <[email protected]> | 2020-09-28 07:20:03 +0000 |
|---|---|---|
| committer | Peter Chen <[email protected]> | 2020-12-10 00:45:26 +0000 |
| commit | 7cea9657756b2c83069a775c0671ff169bce456a (patch) | |
| tree | 8c0368030230a7b210f9dd8561824509c212b426 /drivers/usb/cdns3/core.c | |
| parent | usb: cdns3: host: disable BEI support (diff) | |
| download | kernel-7cea9657756b2c83069a775c0671ff169bce456a.tar.gz kernel-7cea9657756b2c83069a775c0671ff169bce456a.zip | |
usb: cdns3: add quirk for enable runtime pm by default
Some vendors (eg: NXP) may want to enable runtime pm by default for
power saving, add one quirk for it.
Reviewed-by: Jun Li <[email protected]>
Signed-off-by: Peter Chen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
| -rw-r--r-- | drivers/usb/cdns3/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index f2dedce3a40e..54d841aa626f 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -559,7 +559,8 @@ static int cdns3_probe(struct platform_device *pdev) device_set_wakeup_capable(dev, true); pm_runtime_set_active(dev); pm_runtime_enable(dev); - pm_runtime_forbid(dev); + if (!(cdns->pdata->quirks & CDNS3_DEFAULT_PM_RUNTIME_ALLOW)) + pm_runtime_forbid(dev); /* * The controller needs less time between bus and controller suspend, |
