Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
PM / Domains: Check domain status during hibernation restore of devices
Browse files Browse the repository at this point in the history
Power domains that were off before hibernation shouldn't be turned on
during device restore, so prevent that from happening.

This change fixes up commit 65533bb

    PM / Domains: Fix hibernation restore of devices, v2

that didn't include it by mistake.

Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
rjwysocki committed Mar 19, 2012
1 parent 57d1337 commit 18dd2ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/base/power/domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,9 @@ static int pm_genpd_restore_noirq(struct device *dev)
}
}

if (genpd->suspend_power_off)
return 0;

pm_genpd_poweron(genpd);

return dev_gpd_data(dev)->always_on ? 0 : genpd_start_dev(genpd, dev);
Expand Down

0 comments on commit 18dd2ec

Please sign in to comment.