diff options
author | BH Hsieh <bhsieh@nvidia.com> | 2012-08-13 15:33:07 +0800 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-08-17 18:33:44 -0700 |
commit | 856f955552e8dbdf3b4a25c3eb648bcd5193cacf (patch) | |
tree | 7c9ec6a944a5602fd7b17592742bbcddc775e881 /drivers/base/power | |
parent | 7b1ddc1c75665e5c4bf83ceccf4a8ff646c610ca (diff) |
PM: Need to wake_up_all when suspend fail
In rpm_suspend, when suspend fail,
before going to reschedule another autosuspend,
wake_up_all is required to avoid remote wakeup
issues.
Bug 1026169
Bug 1027598
Bug 1032565
Change-Id: Ieaf9282dae59b2cb343bf01aa2ba837a8cdc39c7
Signed-off-by: BH Hsieh <bhsieh@nvidia.com>
Reviewed-on: http://git-master/r/122978
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Neil Patel <neilp@nvidia.com>
Tested-by: Neil Patel <neilp@nvidia.com>
Tested-by: Steve Lin <stlin@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Lin <stlin@nvidia.com>
Diffstat (limited to 'drivers/base/power')
-rw-r--r-- | drivers/base/power/runtime.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c index 3f141ea9283d..37489733cb9d 100644 --- a/drivers/base/power/runtime.c +++ b/drivers/base/power/runtime.c @@ -406,8 +406,10 @@ static int rpm_suspend(struct device *dev, int rpmflags) * reschedule another autosuspend. */ if ((rpmflags & RPM_AUTO) && - pm_runtime_autosuspend_expiration(dev) != 0) + pm_runtime_autosuspend_expiration(dev) != 0) { + wake_up_all(&dev->power.wait_queue); goto repeat; + } } else { pm_runtime_cancel_pending(dev); } |