mmc: sdhci-esdhc-imx: simplify the auto tuning logic
authorHaibo Chen <haibo.chen@nxp.com>
Fri, 23 Dec 2022 02:50:21 +0000 (10:50 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Jan 2023 14:51:38 +0000 (15:51 +0100)
commitc8c49a5a0b2be2da993cee2a2d7fbb5994e47d7a
tree34d469b3a44e68f51e2f3d1dc7af455cf937cc24
parent08e03039e0000a7ec7ba13dc18bddc6afd32cb27
mmc: sdhci-esdhc-imx: simplify the auto tuning logic

Clear auto tuning bit when reset tuning, and enable auto tuning
only after tuning done successfully for both standard tuning and
manual tuning.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20221223025022.1893102-2-haibo.chen@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c