diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-06-08 05:13:51 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-06-08 05:13:51 -0700 |
commit | 3dad7f3687c173cba40d67709adcacf654afb695 (patch) | |
tree | 6a21f062233ff0e2537b0f0e956392b98e833553 /drivers/mmc | |
parent | 9736b785cfb409a9f1a483aa4f476c1d36429a7e (diff) | |
parent | 9c123aff46fed97240deb615af50a85331ed129f (diff) |
Merge "mmc: core: Fix the issue with clock scaling in resume-scaling"
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index c23f3c3ec864..2cb0ea03a338 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -857,7 +857,7 @@ int mmc_resume_clk_scaling(struct mmc_host *host) devfreq_min_clk = host->clk_scaling.freq_table[0]; host->clk_scaling.curr_freq = devfreq_max_clk; - if (host->ios.clock < host->card->clk_scaling_highest) + if (host->ios.clock < host->clk_scaling.freq_table[max_clk_idx]) host->clk_scaling.curr_freq = devfreq_min_clk; host->clk_scaling.clk_scaling_in_progress = false; |