]> 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)
commita47439c3e211bbc513d745b67d74cd2147bda55b
tree5d916915ccf115de362b54a15cf479279ca1c7a3
parenta008b5cc22d95b32dca87b17d9156ca5ab73e838
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