summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-12-10 00:56:50 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-12-13 01:45:06 +0100
commit34fb8f0ba9ceea88e116688f9f53e3802c38aafb (patch)
tree87978efe66704de1ce54ee5ead216bd0a7e82d07 /drivers/base
parentPM / core: remove unneeded kallsyms include (diff)
downloadlinux-34fb8f0ba9ceea88e116688f9f53e3802c38aafb.tar.xz
linux-34fb8f0ba9ceea88e116688f9f53e3802c38aafb.zip
PM / core: Use dev_pm_skip_next_resume_phases() internally
Make the PM core call dev_pm_skip_next_resume_phases() to skip the "early resume" and "resume" phases of system-wide transitions to the working state for a given device instead of clearing the relevant status bits for it directly. No intentional changes in functionality. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/power/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index d8aa88baf9c1..cd48b1c69167 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -593,8 +593,7 @@ static int device_resume_noirq(struct device *dev, pm_message_t state, bool asyn
* device again.
*/
pm_runtime_set_suspended(dev);
- dev->power.is_late_suspended = false;
- dev->power.is_suspended = false;
+ dev_pm_skip_next_resume_phases(dev);
}
Out: