diff options
author | Simon Horman <horms+renesas@verge.net.au> | 2016-11-03 15:15:59 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-11-29 09:00:54 +0100 |
commit | c820af5f18ec248b3cb61a9a9ce47ef0f2e9ec63 (patch) | |
tree | 7b4c1b74560da8183343e3dd0d28715d1b744b2a /include/linux/mmc | |
parent | 0963dd56b1cf2ad2ad8553cb07e438c31e98e1af (diff) | |
download | op-kernel-dev-c820af5f18ec248b3cb61a9a9ce47ef0f2e9ec63.zip op-kernel-dev-c820af5f18ec248b3cb61a9a9ce47ef0f2e9ec63.tar.gz |
mmc: core: Add helper to see if a host can be retuned
This is in preparation for restoring saved tuning parameters
when resuming the TMIO driver.
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/host.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 5310f94..6863929 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -546,6 +546,11 @@ static inline void mmc_retune_recheck(struct mmc_host *host) host->retune_now = 1; } +static inline bool mmc_can_retune(struct mmc_host *host) +{ + return host->can_retune == 1; +} + void mmc_retune_pause(struct mmc_host *host); void mmc_retune_unpause(struct mmc_host *host); |