From: Niklas Söderlund Date: Wed, 29 Aug 2018 23:32:05 +0000 (+0200) Subject: mmc: core: add helper to see if a host is doing a retune X-Git-Tag: v5.15~7810^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbf6d82cad4a507475d92d380228302fe668dd94;p=platform%2Fkernel%2Flinux-starfive.git mmc: core: add helper to see if a host is doing a retune Add a helper to allow host drivers checking if a retune is in progress. Signed-off-by: Niklas Söderlund Reviewed-by: Wolfram Sang Tested-by: Wolfram Sang Signed-off-by: Ulf Hansson --- diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index beed712..2a5fe75 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -569,6 +569,11 @@ static inline bool mmc_can_retune(struct mmc_host *host) return host->can_retune == 1; } +static inline bool mmc_doing_retune(struct mmc_host *host) +{ + return host->doing_retune == 1; +} + static inline enum dma_data_direction mmc_get_dma_dir(struct mmc_data *data) { return data->flags & MMC_DATA_WRITE ? DMA_TO_DEVICE : DMA_FROM_DEVICE;