diff mbox series

[4.4.y-cip,40/83] mmc: core: Add helper to see if a host can be retuned

Message ID 1573115572-13513-41-git-send-email-biju.das@bp.renesas.com (mailing list archive)
State Changes Requested
Headers show
Series Add RZ/G1C SD/eMMC support | expand

Commit Message

Biju Das Nov. 7, 2019, 8:32 a.m. UTC
From: Simon Horman <horms+renesas@verge.net.au>

commit c820af5f18ec248b3cb61a9a9ce47ef0f2e9ec63 upstream.

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>
Signed-off-by: Biju Das <biju.das@bp.renesas.com>
---
 include/linux/mmc/host.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Pavel Machek Nov. 8, 2019, 9:31 a.m. UTC | #1
On Thu 2019-11-07 08:32:09, Biju Das wrote:
> From: Simon Horman <horms+renesas@verge.net.au>
> 
> commit c820af5f18ec248b3cb61a9a9ce47ef0f2e9ec63 upstream.
> 
> This is in preparation for restoring saved tuning parameters
> when resuming the TMIO driver.

> @@ -515,4 +515,9 @@ 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;
> +}
> +

Probably not worth changing any more, but it would be easier to review
if it was merged with the first user.

Best regards,
								Pavel
diff mbox series

Patch

diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 8673ffe..1c483d9 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -515,4 +515,9 @@  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;
+}
+
 #endif /* LINUX_MMC_HOST_H */