PM / Domains: Check device PM QoS flags in pm_genpd_poweroff()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Oct 2012 00:08:30 +0000 (02:08 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Oct 2012 00:08:30 +0000 (02:08 +0200)
commit34b1f76275a2cb8c1ce8e00095d200552b235122
tree4dbb207a615c79692ccc741103cdb8ab83372bde
parente39473d0b9448e770f49b0b15e514be884264438
PM / Domains: Check device PM QoS flags in pm_genpd_poweroff()

Make the generic PM domains pm_genpd_poweroff() function take
device PM QoS flags into account when deciding whether or not to
remove power from the domain.

After this change the routine will return -EBUSY without executing
the domain's .power_off() callback if there is at least one PM QoS
flags request for at least one device in the domain and at least of
those request has at least one of the NO_POWER_OFF and REMOTE_WAKEUP
flags set.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: mark gross <markgross@thegnar.org>
drivers/base/power/domain.c