summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSimon Horman <horms+renesas@verge.net.au>2016-11-03 15:15:59 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2016-11-29 09:00:54 +0100
commitc820af5f18ec248b3cb61a9a9ce47ef0f2e9ec63 (patch)
tree7b4c1b74560da8183343e3dd0d28715d1b744b2a /include/linux
parent0963dd56b1cf2ad2ad8553cb07e438c31e98e1af (diff)
downloadop-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')
-rw-r--r--include/linux/mmc/host.h5
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);
OpenPOWER on IntegriCloud