diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-05-26 00:10:43 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-05-26 00:10:42 -0700 |
commit | 18c1ad4d51f8adf76f3ea2b4a57e00b253773a37 (patch) | |
tree | 4084a632fdb7f7a0592a80472339b6b1cdb99322 | |
parent | 22412a0523bd91337f338cedda9583c1a21bff0e (diff) | |
parent | 37b8f427159201a7d54284f68361754926075737 (diff) |
Merge "mmc: core: retune after un-gating the clocks"
-rw-r--r-- | drivers/mmc/core/core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 43d266a79e53..63f7bf87843f 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -2349,6 +2349,13 @@ void mmc_ungate_clock(struct mmc_host *host) WARN_ON(host->ios.clock); /* This call will also set host->clk_gated to false */ __mmc_set_clock(host, host->clk_old); + /* + * We have seen that host controller's clock tuning circuit may + * go out of sync if controller clocks are gated. + * To workaround this issue, we are triggering retuning of the + * tuning circuit after ungating the controller clocks. + */ + mmc_retune_needed(host); } } |