mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically
authorVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
Mon, 12 Nov 2018 06:52:17 +0000 (12:22 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit21f1e2d457ce678adc1269cef6e83cd66dc6fdc6
treeafb3ccbb6e43ed99981dfe8ba721079b6125ba72
parent247cb8b7a79670ff37b992012431b7f5ec0e196d
mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically

On few SDHCI-MSM controllers, the host controller's clock tuning
circuit may go out of sync if controller clocks are gated which
eventually will result in data CRC, command CRC/timeout errors.
To overcome this h/w limitation, the DLL needs to be re-initialized
and restored with its old settings once clocks are ungated.

Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Reviewed-by: Evan Green <evgreen@chromium.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c