lkml.org 
[lkml]   [2017]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH V9 12/15] mmc: core: Export mmc_retune_hold_now() and mmc_retune_release()
On 22 September 2017 at 14:37, Adrian Hunter <adrian.hunter@intel.com> wrote:
> Export mmc_retune_hold_now() and mmc_retune_release() so they can be used
> by the block driver.
>
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>

I decided to squash patch 10/11/12 as those are all related to the
same problem when porting to blkmq.

So, thanks - applied for next!

Kind regards
Uffe

> ---
> drivers/mmc/core/host.c | 7 +------
> drivers/mmc/core/host.h | 7 ++++++-
> 2 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
> index b624dbb6cd15..1539ce0da196 100644
> --- a/drivers/mmc/core/host.c
> +++ b/drivers/mmc/core/host.c
> @@ -111,12 +111,6 @@ void mmc_retune_hold(struct mmc_host *host)
> host->hold_retune += 1;
> }
>
> -void mmc_retune_hold_now(struct mmc_host *host)
> -{
> - host->retune_now = 0;
> - host->hold_retune += 1;
> -}
> -
> void mmc_retune_release(struct mmc_host *host)
> {
> if (host->hold_retune)
> @@ -124,6 +118,7 @@ void mmc_retune_release(struct mmc_host *host)
> else
> WARN_ON(1);
> }
> +EXPORT_SYMBOL(mmc_retune_release);
>
> int mmc_retune(struct mmc_host *host)
> {
> diff --git a/drivers/mmc/core/host.h b/drivers/mmc/core/host.h
> index 170fe5947087..6eaf558e62d6 100644
> --- a/drivers/mmc/core/host.h
> +++ b/drivers/mmc/core/host.h
> @@ -19,12 +19,17 @@
> void mmc_retune_enable(struct mmc_host *host);
> void mmc_retune_disable(struct mmc_host *host);
> void mmc_retune_hold(struct mmc_host *host);
> -void mmc_retune_hold_now(struct mmc_host *host);
> void mmc_retune_release(struct mmc_host *host);
> int mmc_retune(struct mmc_host *host);
> void mmc_retune_pause(struct mmc_host *host);
> void mmc_retune_unpause(struct mmc_host *host);
>
> +static inline void mmc_retune_hold_now(struct mmc_host *host)
> +{
> + host->retune_now = 0;
> + host->hold_retune += 1;
> +}
> +
> static inline void mmc_retune_recheck(struct mmc_host *host)
> {
> if (host->hold_retune <= 1)
> --
> 1.9.1
>

\
 
 \ /
  Last update: 2017-10-02 10:31    [W:0.477 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site