From 55d5139439b53c0ee9419831cd430b3706ce9125 Mon Sep 17 00:00:00 2001 From: Kishon Vijay Abraham I Date: Fri, 12 May 2017 20:16:34 +0200 Subject: [PATCH] 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: Kishon Vijay Abraham I Signed-off-by: Vignesh R Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Simon Glass --- drivers/mmc/mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 70b7d19f11..415484e33b 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1943,6 +1943,7 @@ static void mmc_power_up(struct mmc *mmc) static void mmc_power_off(struct mmc *mmc) { mmc_set_vdd(mmc, false); + mmc_set_clock(mmc, 1, true); } static void mmc_power_cycle(struct mmc *mmc) -- 2.17.1