summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJouni Hogander <jouni.hogander@nokia.com>2008-10-29 10:06:04 (GMT)
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-05 16:10:54 (GMT)
commit6c5f80393b107b0c9e2a54b03b65d1880e706655 (patch)
tree2264c181082b87f1f696bc8d75036ac351376c3d /arch
parent60c45ae1107c4ec47d2c84e5984ea59d02b2863d (diff)
downloadlinux-6c5f80393b107b0c9e2a54b03b65d1880e706655.tar.xz
OMAP3: PM: Fix wrong sequence in suspend.
Powerdomain previous state is checked after restoring new states in suspend. This patch fixes this problem. Signed-off-by: Jouni Hogander <jouni.hogander@nokia.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/pm34xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index b07efb2..488d595 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -326,7 +326,6 @@ static int omap3_pm_suspend(void)
restore:
/* Restore next_pwrsts */
list_for_each_entry(pwrst, &pwrst_list, node) {
- set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state);
state = pwrdm_read_prev_pwrst(pwrst->pwrdm);
if (state > pwrst->next_state) {
printk(KERN_INFO "Powerdomain (%s) didn't enter "
@@ -334,6 +333,7 @@ restore:
pwrst->pwrdm->name, pwrst->next_state);
ret = -1;
}
+ set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state);
}
if (ret)
printk(KERN_ERR "Could not enter target state in pm_suspend\n");