lkml.org 
[lkml]   [2010]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectThe use_count problem of regulator
Hi, all.

I have one simple question.

In the regulator framework, if the regulator is enabled for example by
boot_on constraint, when regulator_get is called at the driver probe
function, the use_count of struct regulator_dev is zero. But if
regulator_has_full_constraints() is used, even though above the
regulator is using, it is disabled by regulator_init_complete() because
the use_count is zero.

Of course, we can use regulator_get_exclusive instead of regulator_get,
but if the regulator can be shared, i think this will be a problem.

Thanks.


\
 
 \ /
  Last update: 2010-01-20 07:33    [W:0.038 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site