lkml.org 
[lkml]   [2014]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] regulator: core: do not disable regulator if boot_on is set
On Tue, Nov 25, 2014 at 04:23:23PM +0530, Pramod Gurav wrote:
> Currently the regulator core disables the regulators which are unused
> or whose reference count is zero or if they are configured always_on.

No, it does *not* disable them if they are configured always_on (as the
code you're modifying shows).

> This change adds a check in this logic to see if a regulator is
> configured as boot_on and does not disable it if found true.

> - if (c && c->always_on)
> + if (c && (c->always_on || c->boot_on))
> continue;

This isn't what boot_on means. It just means that the regulator is
expected to be enabled at initial power on, it doesn't mean it needs to
be enabled all the time. Otherwise there'd be no point in having a
separate always_on flag.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2014-11-25 12:41    [W:0.046 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site