]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-esdhc-imx: optimize the clock setting
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 19 Feb 2020 08:25:50 +0000 (16:25 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 13:35:41 +0000 (14:35 +0100)
commit88f55f66a94f73eb1ecf0db7b0eaf39912072bff
tree5d916915ccf115de362b54a15cf479279ca1c7a3
parent06d1d44796b2ab7a7db4a67e5a882d58e32ff754
mmc: sdhci-esdhc-imx: optimize the clock setting

When force clock off, check the SDOFF of register PRSSTAT to make sure
the clock is gate off. Before force clock on, check the SDSTB of register
PRSSTAT to make sure the clock is stable, this will eliminate the clock
glitch.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1582100757-20683-2-git-send-email-haibo.chen@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-esdhc.h