lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141112130735.GA16426@opensource.wolfsonmicro.com>
Date:	Wed, 12 Nov 2014 13:07:35 +0000
From:	Richard Fitzgerald <rf@...nsource.wolfsonmicro.com>
To:	Mark Brown <broonie@...nel.org>
Cc:	lgirdwood@...il.com, linux-kernel@...r.kernel.org,
	patches@...nsource.wolfsonmicro.com
Subject: Re: [PATCH] regulator: core: export function to check if regulator
	always on

On Wed, Nov 12, 2014 at 11:35:41AM +0000, Mark Brown wrote:
> On Wed, Nov 12, 2014 at 11:18:35AM +0000, Richard Fitzgerald wrote:
> > Export a function to allow a consumer to check if its supply
> > regulator is always on. Drivers might wish to take different
> > action based on this - for example skipping time-consuming
> > power-saving preparations that are irrelevant if the regulator
> > cannot be disabled.
> 
> 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.


> 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.

> You're also missing a !CONFIG_REGULATOR stub.

It's there at the end of the patch, returning 1.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ