public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Mark Brown <broonie@sirena.org.uk>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>, lkml <linux-kernel@vger.kernel.org>
Subject: Re: [patch 2.6.28-rc5] regulator: enable/disable refcounting
Date: Mon, 17 Nov 2008 08:21:47 -0800	[thread overview]
Message-ID: <200811170821.47582.david-b@pacbell.net> (raw)
In-Reply-To: <20081117151636.GG1559@sirena.org.uk>

On Monday 17 November 2008, Mark Brown wrote:
> On Sun, Nov 16, 2008 at 11:44:46AM -0800, David Brownell wrote:
> 
> > +	mutex_lock(&rdev->mutex);
> > +	if (regulator->enabled == 1) {
> > +		ret = _regulator_disable(rdev);
> > +		if (ret == 0)
> > +			regulator->uA_load = 0;
> 
> Why clear the load here?  I'd expect to be able to enable and disable
> the regulator while preserving the configuration.

That clear was in the original code.  Didn't make much sense
to me either, but I was just caring it forward...


  reply	other threads:[~2008-11-17 16:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-16 19:44 [patch 2.6.28-rc5] regulator: enable/disable refcounting David Brownell
2008-11-17 15:16 ` Mark Brown
2008-11-17 16:21   ` David Brownell [this message]
2008-11-17 16:46     ` Liam Girdwood
2008-11-19 21:26 ` Liam Girdwood
2008-11-19 22:12   ` David Brownell
2008-11-20 21:58     ` Liam Girdwood
2008-11-20 22:05       ` David Brownell

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=200811170821.47582.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=broonie@sirena.org.uk \
    --cc=dbrownell@users.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lrg@slimlogic.co.uk \
    /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