UPSTREAM: PM / Domains: Drop unnecessary wakeup code from pm_genpd_prepare()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 26 Apr 2016 06:47:18 +0000 (08:47 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 15 Feb 2017 08:52:28 +0000 (16:52 +0800)
As the PM core already have wakeup management during the system PM phase,
it seems reasonable that genpd and its users should be able to rely on
that. Therefore let's remove this from pm_genpd_prepare().

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 164a2159a2d6789bc7e3c4b126dde7f3ce865992)

Change-Id: I39f72aa82468327c01b4533d177f797bf2da59a6
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
drivers/base/power/domain.c

index e36c01c8b0672777e83308016a4e3a237ea33df8..376bf27108f97078783bb9965dad1d34daf7474b 100644 (file)
@@ -688,12 +688,6 @@ static int pm_genpd_prepare(struct device *dev)
         * at this point and a system wakeup event should be reported if it's
         * set up to wake up the system from sleep states.
         */
-       if (pm_runtime_barrier(dev) && device_may_wakeup(dev))
-               pm_wakeup_event(dev, 0);
-
-       if (pm_wakeup_pending())
-               return -EBUSY;
-
        if (resume_needed(dev, genpd))
                pm_runtime_resume(dev);