Skip to content
Snippets Groups Projects
Commit 2e7410d7 authored by Kishon Vijay Abraham I's avatar Kishon Vijay Abraham I Committed by Jaehoon Chung
Browse files

mmc: disable the mmc clock during power off


There is no point in having the mmc clock enabled during
power off. Disable the mmc clock. This is similar to how it's
programmed in Linux Kernel.

Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
Signed-off-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 35f67820
No related branches found
No related tags found
No related merge requests found
...@@ -1971,6 +1971,7 @@ static int mmc_power_on(struct mmc *mmc) ...@@ -1971,6 +1971,7 @@ static int mmc_power_on(struct mmc *mmc)
static int mmc_power_off(struct mmc *mmc) static int mmc_power_off(struct mmc *mmc)
{ {
mmc_set_clock(mmc, 1, true);
#if CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(DM_REGULATOR) #if CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(DM_REGULATOR)
if (mmc->vmmc_supply) { if (mmc->vmmc_supply) {
int ret = regulator_set_enable(mmc->vmmc_supply, false); int ret = regulator_set_enable(mmc->vmmc_supply, false);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment