Merge "mmc: core: retune after un-gating the clocks"
This commit is contained in:
commit
18c1ad4d51
1 changed files with 7 additions and 0 deletions
|
@ -2349,6 +2349,13 @@ void mmc_ungate_clock(struct mmc_host *host)
|
||||||
WARN_ON(host->ios.clock);
|
WARN_ON(host->ios.clock);
|
||||||
/* This call will also set host->clk_gated to false */
|
/* This call will also set host->clk_gated to false */
|
||||||
__mmc_set_clock(host, host->clk_old);
|
__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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue