OSDN Git Service

mmc: sdhci: add delay after the last tuning command
authorBOUGH CHEN <haibo.chen@nxp.com>
Fri, 28 Dec 2018 08:35:49 +0000 (08:35 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Feb 2019 07:40:58 +0000 (08:40 +0100)
commit2b06e1597ac200de8e5cffc3b2a3e287f62258a1
tree231e7e0f38d35282af6cbe2d87851574dc995c36
parentd00ab1010c2e8e7e710697c39fb9b7e4fa7dd9c1
mmc: sdhci: add delay after the last tuning command

When host set the host->tuning_delay, even the last tuning
command need a delay, otherwise the first command after the
tuning will meet issue.

Take i.MX7D as an example, there will be the following log:
  mmc2: switch to high-speed from hs200 failed, err:-110
  mmc2: error -110 whilst initialising MMC card

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c