OSDN Git Service

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)
commitf581e9093aa2820c315273fc0cbf7cb0294fd005
tree5d916915ccf115de362b54a15cf479279ca1c7a3
parent5bd2acdcdde22231057b12ee8978dd87c29ff322
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