summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorBH Hsieh <bhsieh@nvidia.com>2012-08-13 15:33:07 +0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:31:53 -0700
commit067da773b793b7acc51f82463e15c708d9995df1 (patch)
tree24e008d5d7c49c2f771bed6d014bd10814361abc /drivers/base
parent7db0c1551e6b97ec52cb896ee54ae954a74d2342 (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> Rebase-Id: R64d5eda31cf2ebeb80d6fcd4d9fc5af9442010e3
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/runtime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/base/power/runtime.c b/drivers/base/power/runtime.c
index ef13ad08afb2..b43424c3ea0d 100644
--- a/drivers/base/power/runtime.c
+++ b/drivers/base/power/runtime.c
@@ -559,8 +559,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);
}