lkml.org 
[lkml]   [2012]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: core: Keep boot_on regulators powered during init
On 04/23/2012 01:05 PM, Mark Brown wrote:
> On Mon, Apr 23, 2012 at 12:52:05PM +0200, Ulf Hansson wrote:
>
>> I realize that using boot_on, which has been around for quite some
>> time could have problems. If not using the existing boot_on
>> constraint, do you have an idea of how to accomplish what I want?
>> Should I invent a new constraint option to be used in
>> regulator_init_complete!?
>
> To be honest I don't entirely understand what your goal is at the system
> level - the current idea is that either the regulator will be marked as
> always_on or it should be enabled by a consumer. What is the scenario
> in which neither of these is sufficient?

The consumer do not want to enable the regulator directly from its
device probe routine, it is handled through a scheduled work.

Moreover the regulator shall not be switched off unless the consumer
work decides that this is OK.

So, we actually will have a race were the work _might_ be able to
preventing the late_init_call (regulator_init_complete) from disabling
the regulator if has reached the point were it has enabled the regulator.

Hopes this clarifies the background a bit more.


Kind regards
Ulf Hansson



\
 
 \ /
  Last update: 2012-04-23 14:25    [W:0.072 / U:29.404 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site