diff options
| author | Talel Shenhar <tatias@codeaurora.org> | 2015-08-18 02:28:56 +0300 |
|---|---|---|
| committer | Subhash Jadavani <subhashj@codeaurora.org> | 2016-05-31 15:27:14 -0700 |
| commit | 602d8c8cfc1fbd35b87843baf0e8e18d8b8957ac (patch) | |
| tree | 69ec72064de8f26f76bb7d7de780b603e3f2c74d | |
| parent | 73ba7de11a02393100b1cdf9e349f5d5c800f7f4 (diff) | |
mmc: core: clock-scaling: scale only for data requests
This change makes sure we will do deferred scaling only
from data path and not for other requests such as mmc_switch.
Change-Id: I52142d7a0262ca8927c7c1c509235ead676aac97
Signed-off-by: Talel Shenhar <tatias@codeaurora.org>
[subhashj@codeaurora.org: fixed trivial merge conflicts]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
| -rw-r--r-- | drivers/mmc/core/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 7531de320c31..afc7b8c26b22 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -1011,9 +1011,10 @@ static int mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) mmc_host_clk_hold(host); led_trigger_event(host->led, LED_FULL); - mmc_deferred_scaling(host); - if (mmc_is_data_request(mrq)) + if (mmc_is_data_request(mrq)) { + mmc_deferred_scaling(host); mmc_clk_scaling_start_busy(host, true); + } __mmc_start_request(host, mrq); |
