Commit a8e6df73 authored by Eliad Peller's avatar Eliad Peller Committed by Chris Ball

mmc: core: clear MMC_PM_KEEP_POWER flag on resume

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: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 1d6c4e0a
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment