blob: 3dd34d4a36b52b4c76c54fbb0f992c9e794dbb7b [file] [log] [blame]
From c8a80644992922d65fb3c81b55b7ac58e4ca678b Mon Sep 17 00:00:00 2001
From: Simon Horman <horms+renesas@verge.net.au>
Date: Thu, 3 Nov 2016 15:15:59 +0100
Subject: [PATCH 147/299] 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>
(cherry picked from commit c820af5f18ec248b3cb61a9a9ce47ef0f2e9ec63)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
include/linux/mmc/host.h | 5 +++++
1 file changed, 5 insertions(+)
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -546,6 +546,11 @@ static inline void mmc_retune_recheck(st
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);