Skip to content

Commit

Permalink
mmc: core: clear MMC_PM_KEEP_POWER flag on resume
Browse files Browse the repository at this point in the history
Since the MMC_PM_KEEP_POWER flag should be set on each suspend,
it should also cleared on each resume.

Upon resuming, we have to know if power was kept
(for re-initialization, etc.), so clear it just after resuming.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Eliad Peller authored and Chris Ball committed May 25, 2011
1 parent 1d6c4e0 commit a8e6df7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1829,6 +1829,7 @@ int mmc_resume_host(struct mmc_host *host)
err = 0;
}
}
host->pm_flags &= ~MMC_PM_KEEP_POWER;
mmc_bus_put(host);

return err;
Expand Down

0 comments on commit a8e6df7

Please sign in to comment.