aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-12-01 13:10:47 -0500
committerDaniel Walker <dwalker@codeaurora.org>2010-03-18 16:37:20 -0400
commit24bbd7d5b422cde6a149ac2f9ac6e61e66536532 (patch)
treec0abdf5257452c8b6d1778e4f2bb4bd686f26a0b /drivers/mmc
parent673ce00d7cb4ec060b5091992959da4a1d91c634 (diff)
mmc: msm_sdcc: Enable busclk idle timer for power savings
Signed-off-by: San Mehat <san@google.com> Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/msm_sdcc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c
index 6e50939b6f88..d42a2dd69325 100644
--- a/drivers/mmc/host/msm_sdcc.c
+++ b/drivers/mmc/host/msm_sdcc.c
@@ -48,7 +48,7 @@
48 48
49#define DRIVER_NAME "msm-sdcc" 49#define DRIVER_NAME "msm-sdcc"
50 50
51#define BUSCLK_PWRSAVE 0 51#define BUSCLK_PWRSAVE 1
52#define BUSCLK_TIMEOUT (HZ) 52#define BUSCLK_TIMEOUT (HZ)
53static unsigned int msmsdcc_fmin = 144000; 53static unsigned int msmsdcc_fmin = 144000;
54static unsigned int msmsdcc_fmax = 50000000; 54static unsigned int msmsdcc_fmax = 50000000;
@@ -72,7 +72,6 @@ msmsdcc_disable_clocks(struct msmsdcc_host *host, int deferr)
72 mod_timer(&host->busclk_timer, jiffies + BUSCLK_TIMEOUT); 72 mod_timer(&host->busclk_timer, jiffies + BUSCLK_TIMEOUT);
73 } else { 73 } else {
74 del_timer_sync(&host->busclk_timer); 74 del_timer_sync(&host->busclk_timer);
75// dev_info(mmc_dev(host->mmc), "Immediate clock shutdown\n");
76 clk_disable(host->clk); 75 clk_disable(host->clk);
77 clk_disable(host->pclk); 76 clk_disable(host->pclk);
78 host->clks_on = 0; 77 host->clks_on = 0;