Skip to content

Commit

Permalink
mmc: core: Add helper to see if a host can be retuned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Simon Horman authored and Ulf Hansson committed Nov 29, 2016
1 parent 0963dd5 commit c820af5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/mmc/host.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c820af5

Please sign in to comment.