mmc: sdhci: Disable re-tuning for HS400
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 5 Dec 2014 17:25:31 +0000 (19:25 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 12 Jan 2015 09:14:56 +0000 (10:14 +0100)
commitb5540ce1512eede3bed68ab1e9949df9ad556091
treeb72f27bae81f9273b04769a7168db2b88e86ef8e
parent38e40bf5db9d5b8cbaeca9a78ee17f38473dd78d
mmc: sdhci: Disable re-tuning for HS400

Re-tuning for HS400 mode must be done in HS200
mode. Currently there is no support for that.
That needs to be reflected in the code.
Specifically, if tuning is executed in HS400 mode
then return an error, and do not start the
tuning timer if HS200 tuning is being done prior
to switching to HS400.

Note that periodic re-tuning is not expected
to be needed for HS400 but re-tuning is still
needed after the host controller has lost power.
In the case of suspend/resume that is not necessary
because the card is fully re-initialised. That
just leaves runtime suspend/resume with no support
for HS400 re-tuning.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
include/linux/mmc/sdhci.h