[ 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
18dd2ece3cde14cfd42e95a89eb14016699a5f15.

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
65533bbf63b4f37723fdfedc73d0653958973323

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;
+
pm_genpd_poweron(genpd);
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/