Merge "mmc: core: retune after un-gating the clocks"

This commit is contained in:
Linux Build Service Account 2017-05-26 00:10:43 -07:00 committed by Gerrit - the friendly Code Review server
commit 18c1ad4d51

View file

@ -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);
}
}