mmc: core: Add a facility to "pause" re-tuning
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 16 May 2016 12:35:24 +0000 (15:35 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 17 May 2016 14:54:26 +0000 (16:54 +0200)
commit7ff2760999a86e4d2b1af93dcf0f0d336c309571
tree2b59e9efc78c91c74f7530b4b8060dfdfea657af
parent16490980e396fac079248b23b1dd81e7d48bebf3
mmc: core: Add a facility to "pause" re-tuning

Re-tuning is not possible when switched to the RPMB
partition.  However re-tuning should not be needed
if re-tuning is done immediately before switching,
a small set of operations is done, and then we
immediately switch back to the main partition.

To ensure that re-tuning can't be done for a short
while, add a facility to "pause" re-tuning.

The existing facility to hold / release re-tuning
is used but it also flags re-tuning as needed to cause
re-tuning before the next command (which will be the
switch to RPMB).

We also need to "unpause" in the recovery path, which
is catered for by adding it to mmc_retune_disable().

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