linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Ball <cjb@laptop.org>
To: Linus Walleij <linus.ml.walleij@gmail.com>
Cc: David Vrabel <david.vrabel@csr.com>,
	linux-mmc@vger.kernel.org, Ghorai Sukumar <s-ghorai@ti.com>,
	Nicolas Pitre <nico@fluxnic.net>,
	Adrian Hunter <adrian.hunter@nokia.com>,
	Kyungmin Park <kmpark@infradead.org>,
	jh80.chung@samsung.com
Subject: Re: [PATCH 1/2] mmc: agressive clocking framework v8
Date: Thu, 23 Dec 2010 00:09:47 +0000	[thread overview]
Message-ID: <20101223000947.GA29312@void.printf.net> (raw)
In-Reply-To: <AANLkTikmLaTXAxdfUtfoEKuASeJ-F=zLQYJC36sj4oT+@mail.gmail.com>

Hi Linus,

On Wed, Dec 22, 2010 at 09:50:12AM +0100, Linus Walleij wrote:
> Sure! Chris do you prefer this one instead?
> 
> From: Linus Walleij <linus.walleij@stericsson.com>
> Date: Wed, 22 Dec 2010 09:49:04 +0100
> Subject: [PATCH] mmc: check for > 1 clk_requests
> 
> Since we make sure the clock is enabled in the mmc_host_clk_exit()
> function we should expect a reference counter of 1, not 0.
> 
> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
> ---
>  drivers/mmc/core/host.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
> index 92e3370..b3ac6c5 100644
> --- a/drivers/mmc/core/host.c
> +++ b/drivers/mmc/core/host.c
> @@ -235,7 +235,8 @@ static inline void mmc_host_clk_exit(struct mmc_host *host)
>  		mmc_host_clk_gate_delayed(host);
>  	if (host->clk_gated)
>  		mmc_host_clk_ungate(host);
> -	BUG_ON(host->clk_requests > 0);
> +	/* There should be only one user now */
> +	WARN_ON(host->clk_requests > 1);
>  }
> 
>  #else

Thanks, both of you, have merged this to mmc-next now.  We'll do some
rebasing to fold it in later.

-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

      reply	other threads:[~2010-12-23  0:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-03  9:22 [PATCH 1/2] mmc: agressive clocking framework v8 Linus Walleij
2010-11-08  9:26 ` Linus Walleij
2010-11-08 22:30   ` Linus Walleij
2010-11-09  3:59     ` Chris Ball
2010-11-09 10:18       ` Linus Walleij
2010-11-22 23:27       ` Chris Ball
2010-11-24 13:15         ` Linus Walleij
2010-11-24 13:38           ` Chris Ball
2010-11-10  9:05 ` Ohad Ben-Cohen
2010-11-10 16:25   ` Linus Walleij
2010-11-10 16:34     ` Chris Ball
2010-11-10 19:22     ` Ohad Ben-Cohen
2010-12-21 20:24 ` Chris Ball
2010-12-22  8:12   ` Linus Walleij
2010-12-22  8:24     ` David Vrabel
2010-12-22  8:50       ` Linus Walleij
2010-12-23  0:09         ` Chris Ball [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101223000947.GA29312@void.printf.net \
    --to=cjb@laptop.org \
    --cc=adrian.hunter@nokia.com \
    --cc=david.vrabel@csr.com \
    --cc=jh80.chung@samsung.com \
    --cc=kmpark@infradead.org \
    --cc=linus.ml.walleij@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=nico@fluxnic.net \
    --cc=s-ghorai@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).