]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-of-esdhc: exit HS400 properly before setting any speed mode
authorYangbo Lu <yangbo.lu@nxp.com>
Fri, 22 May 2020 03:12:56 +0000 (11:12 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:22:16 +0000 (11:22 +0200)
commit286c4a7dc0cd51fc89f7942f0e59f301a637d814
tree49755d4422ade98e3278de0cabdbff64e1550823
parent2c18ae0b6524c1875bb62a0eb77cee0a3390e32a
mmc: sdhci-of-esdhc: exit HS400 properly before setting any speed mode

The eSDHC HS400 timing requires many specific registers setting,
unlike other speed modes which need to set only host controller 2
register. When driver needs to downgrade HS400 mode to other speed
mode, the controller have to exit HS400 timing properly first.
This patch is to support the procedure of HS400 exiting at the
beginning of esdhc_set_uhs_signaling.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200522031256.856-1-yangbo.lu@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-esdhc.c