1 From 96d42df4e7cb700bde4bdf5106cfd2753749c4e7 Mon Sep 17 00:00:00 2001
2 From: Kishon Vijay Abraham I <kishon@ti.com>
3 Date: Fri, 11 Nov 2016 19:59:22 +0530
4 Subject: [PATCH] mmc: disable the mmc clock during power off
6 There is no point in having the mmc clock enabled during
7 power off. Disable the mmc clock. This is similar to how it's
8 programmed in Linux Kernel.
10 Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
12 drivers/mmc/mmc.c | 1 +
13 1 file changed, 1 insertion(+)
15 diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
16 index c929a1e..84515a7 100644
17 --- a/drivers/mmc/mmc.c
18 +++ b/drivers/mmc/mmc.c
19 @@ -2058,6 +2058,7 @@ static void mmc_power_off(struct mmc *mmc)
21 mmc_set_signal_voltage(mmc, 0);
22 mmc_set_vdd(mmc, false);
23 + mmc_set_clock(mmc, 1, true);
26 static void mmc_power_cycle(struct mmc *mmc)