diff options
| author | Adrian Hunter <adrian.hunter@intel.com> | 2016-05-16 08:35:24 -0400 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-05-17 10:54:26 -0400 |
| commit | 7ff2760999a86e4d2b1af93dcf0f0d336c309571 (patch) | |
| tree | 2b59e9efc78c91c74f7530b4b8060dfdfea657af /include/linux/mmc | |
| parent | 16490980e396fac079248b23b1dd81e7d48bebf3 (diff) | |
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>
Diffstat (limited to 'include/linux/mmc')
| -rw-r--r-- | include/linux/mmc/host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 85800b48241f..45cde8cd39f2 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h | |||
| @@ -329,6 +329,7 @@ struct mmc_host { | |||
| 329 | unsigned int can_retune:1; /* re-tuning can be used */ | 329 | unsigned int can_retune:1; /* re-tuning can be used */ |
| 330 | unsigned int doing_retune:1; /* re-tuning in progress */ | 330 | unsigned int doing_retune:1; /* re-tuning in progress */ |
| 331 | unsigned int retune_now:1; /* do re-tuning at next req */ | 331 | unsigned int retune_now:1; /* do re-tuning at next req */ |
| 332 | unsigned int retune_paused:1; /* re-tuning is temporarily disabled */ | ||
| 332 | 333 | ||
| 333 | int rescan_disable; /* disable card detection */ | 334 | int rescan_disable; /* disable card detection */ |
| 334 | int rescan_entered; /* used with nonremovable devices */ | 335 | int rescan_entered; /* used with nonremovable devices */ |
| @@ -526,4 +527,7 @@ static inline void mmc_retune_recheck(struct mmc_host *host) | |||
| 526 | host->retune_now = 1; | 527 | host->retune_now = 1; |
| 527 | } | 528 | } |
| 528 | 529 | ||
| 530 | void mmc_retune_pause(struct mmc_host *host); | ||
| 531 | void mmc_retune_unpause(struct mmc_host *host); | ||
| 532 | |||
| 529 | #endif /* LINUX_MMC_HOST_H */ | 533 | #endif /* LINUX_MMC_HOST_H */ |
