diff options
author | Peter Chen <peter.chen@nxp.com> | 2018-01-12 15:26:12 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | d49deb7f82f965efbc0eca6c12d0a8ea966e2472 (patch) | |
tree | 94cbcd73ba2e366dbdeecf9759427d6ce3728d3d /drivers/usb/cdns3 | |
parent | 0d8c58adc3b7e152bc2184c55a8feeb5fb739961 (diff) |
MLK-17366-2 usb: cdns3: decrease autosuspend timeout
Cadence3 low power sequence doesn't allow too much time gap
between xhci bus suspend and controller suspend,
otherwise, the disconnection will be seen between them.
Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/cdns3')
-rw-r--r-- | drivers/usb/cdns3/core.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index 7e46c7407736..9f601cba071b 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -610,7 +610,12 @@ 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_set_autosuspend_delay(dev, 2000); + /* + * The controller needs less time between bus and controller suspend, + * and we also needs a small delay to avoid frequently entering low + * power mode. + */ + pm_runtime_set_autosuspend_delay(dev, 20); pm_runtime_mark_last_busy(dev); pm_runtime_use_autosuspend(dev); dev_dbg(dev, "Cadence USB3 core: probe succeed\n"); |