diff options
author | Robert Shih <rshih@nvidia.com> | 2014-06-05 13:25:09 +0800 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-06-23 22:50:35 -0700 |
commit | 0bbf30a9abf6a88c05c96c5076222e2c5114e802 (patch) | |
tree | 2eaaf9fe53bb0393158c67499574c60daf1b2ad9 /drivers/usb | |
parent | e2bd1bf8563b0977b60ddd3e19b9d2df4dc0d7e2 (diff) |
tn8: modem: reduce timeout wakelock to 1s
1. The kernel resume (from LP0 to the time
when app tasks start unfreezing) is shorter than 200ms.
When app tasks start running, the RIL/framework/app
will hold their wake lock to block suspending.
Furthermore, tegra_usb_modem_post_remote_wakeup()
in tegra_usb_modem_power.c will hold another timeout
(1 second) wake lock, which should start later than
the wake lock "tegra-ehci.1".
So, 1s timeout for wake lock "tegra-ehci.1" in kernel
should be enough.
2. Per our experience, many system resume/suspend
(with screen off) caused by remote wake-up is
able to finish in 1.5 seconds, or even shorter.
So, 3 seconds timeout could cause more unnecessary
power consumption.
bug 1519797
Change-Id: If7b20ea490007e1df0639b4ece8f32fdb3fa757e
Signed-off-by: Robert Shih <rshih@nvidia.com>
Reviewed-on: http://git-master/r/419279
(cherry picked from commit 3ee5cc88a7db04b2087937e8ddb27f69ab934544)
Reviewed-on: http://git-master/r/423626
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Martin Chi <mchi@nvidia.com>
Tested-by: Martin Chi <mchi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/host/ehci-tegra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index f79026de333f..94a4782f6b4c 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -228,7 +228,7 @@ static irqreturn_t tegra_ehci_irq(struct usb_hcd *hcd) } if (tegra_usb_phy_pmc_wakeup(tegra->phy)) { ehci_dbg(ehci, "pmc interrupt detected\n"); - wake_lock_timeout(&tegra->ehci_wake_lock, 3 * HZ); + wake_lock_timeout(&tegra->ehci_wake_lock, HZ); usb_hcd_resume_root_hub(hcd); spin_unlock(&ehci->lock); return irq_status; |