[ 127/175] PM / Domains: Check domain status during hibernation restore of devices

From: Greg KH
Date: Fri Mar 30 2012 - 17:24:34 EST

3.3-stable review patch. If anyone has any objections, please let me know.


From: Rafael J. Wysocki <rjw@xxxxxxx>

This is a backport of mainline commit

Power domains that were off before hibernation shouldn't be turned on
during device restore, so prevent that from happening.

This change fixed up mainline commit

PM / Domains: Fix hibernation restore of devices, v2

that didn't include it by mistake.

Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

drivers/base/power/domain.c | 3 +++
1 file changed, 3 insertions(+)

--- a/drivers/base/power/domain.c
+++ b/drivers/base/power/domain.c
@@ -1064,6 +1064,9 @@ static int pm_genpd_restore_noirq(struct

+ if (genpd->suspend_power_off)
+ return 0;
genpd_start_dev(genpd, dev);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/