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 --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 */