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)
commit47e9e107fa31fcdd9eb82b22b7b0ab3c987eb576
tree49755d4422ade98e3278de0cabdbff64e1550823
parent16d18d893c20564cf097099ade0d6505c835dea5
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