Commit 24bbd7d5 authored by San Mehat's avatar San Mehat Committed by Daniel Walker

mmc: msm_sdcc: Enable busclk idle timer for power savings

Signed-off-by: default avatarSan Mehat <san@google.com>
Signed-off-by: default avatarDaniel Walker <dwalker@codeaurora.org>
parent 673ce00d
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#define DRIVER_NAME "msm-sdcc" #define DRIVER_NAME "msm-sdcc"
#define BUSCLK_PWRSAVE 0 #define BUSCLK_PWRSAVE 1
#define BUSCLK_TIMEOUT (HZ) #define BUSCLK_TIMEOUT (HZ)
static unsigned int msmsdcc_fmin = 144000; static unsigned int msmsdcc_fmin = 144000;
static unsigned int msmsdcc_fmax = 50000000; static unsigned int msmsdcc_fmax = 50000000;
...@@ -72,7 +72,6 @@ msmsdcc_disable_clocks(struct msmsdcc_host *host, int deferr) ...@@ -72,7 +72,6 @@ msmsdcc_disable_clocks(struct msmsdcc_host *host, int deferr)
mod_timer(&host->busclk_timer, jiffies + BUSCLK_TIMEOUT); mod_timer(&host->busclk_timer, jiffies + BUSCLK_TIMEOUT);
} else { } else {
del_timer_sync(&host->busclk_timer); del_timer_sync(&host->busclk_timer);
// dev_info(mmc_dev(host->mmc), "Immediate clock shutdown\n");
clk_disable(host->clk); clk_disable(host->clk);
clk_disable(host->pclk); clk_disable(host->pclk);
host->clks_on = 0; host->clks_on = 0;
......
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