mmc: sdhci-esdhc-imx: Select the correct mode for auto tuning
authorHaibo Chen <haibo.chen@nxp.com>
Wed, 18 Aug 2021 11:16:51 +0000 (19:16 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 25 Aug 2021 09:04:42 +0000 (11:04 +0200)
commit45334ee13858de4c8c8c781b3b0f94b7b81e9e69
treee8bdfa86713bfc9dacc020b61671c6d529da5266
parenta0dbbdc2036e7406bf937912f7997c0b34042464
mmc: sdhci-esdhc-imx: Select the correct mode for auto tuning

USDHC hardware auto tuning circuit support check 1/4/8 data lines and cmd
line. Out of reset uSDHC, it default select check 4 data lines and do not
check cmd line. This is incorrect if we use 8 data lines. So need to config
the auto tuning mode according to current bus width.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://lore.kernel.org/r/1629285415-7495-2-git-send-email-haibo.chen@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c