public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Cc: lgirdwood@gmail.com, linux-kernel@vger.kernel.org,
	patches@opensource.wolfsonmicro.com
Subject: Re: [PATCH] regulator: core: export function to check if regulator always on
Date: Wed, 12 Nov 2014 14:58:02 +0000	[thread overview]
Message-ID: <20141112145802.GK3815@sirena.org.uk> (raw)
In-Reply-To: <20141112130735.GA16426@opensource.wolfsonmicro.com>

[-- Attachment #1: Type: text/plain, Size: 1299 bytes --]

On Wed, Nov 12, 2014 at 01:07:35PM +0000, Richard Fitzgerald wrote:
> On Wed, Nov 12, 2014 at 11:35:41AM +0000, Mark Brown wrote:

> > I'd like to see a user here,

> The user will be the Arizona codec drivers but I wanted to upstream
> this patch first for discussion.

My point is that the code using the API is useful input to the
discussion.

> > and I'd also like to understand why this is
> > a better approach than using a callback to postpone these expensive
> > operations until the regulator is actually powered off like we already
> > do for some things like register cache resyncs.  That is normally better
> > since it also avoids the work in cases where the regulator isn't always
> > on like reenabling during a delayed powerdown or shared regulators.

> The runtime_suspend() for the Arizona drivers has to do a bunch of
> preparation before disabling the DCVDD regulator (and there's more
> preparation steps that need to be upstreamed). There's no point doing
> any of this if at the end the regulator isn't going to switch off.

I'm not sure that this addresses my concern about postponing the
expensive work until the regulator is actually powered off at all?

> > You're also missing a !CONFIG_REGULATOR stub.

> It's there at the end of the patch, returning 1.

Bah, so it is.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2014-11-12 14:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-12 11:18 [PATCH] regulator: core: export function to check if regulator always on Richard Fitzgerald
2014-11-12 11:35 ` Mark Brown
2014-11-12 13:07   ` Richard Fitzgerald
2014-11-12 14:58     ` Mark Brown [this message]
2014-11-12 16:58       ` Richard Fitzgerald
2014-11-12 17:26         ` Mark Brown

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=20141112145802.GK3815@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.wolfsonmicro.com \
    --cc=rf@opensource.wolfsonmicro.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