lkml.org 
[lkml]   [2012]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectregulator: Policy for setting current limits
Date
Hi,

I hit a problem when setting a current limit and am not sure whose fault it is
(i.e. which component to change). Therefore I'd appreciate a pointer in the
right direction.

After the recent changes the gpio-regulator always selects the minimal value
to set. The gpio-vbus driver sets it's current limits as 0 - x mA (x = 100,
500). Therefore if 500mA are the upper limit but the regulator also supports
lower values, these lower values always get selected (100mA in my case).
In contrast pda_power sets the target current as both lower and upper limit.

So the question is, what is the correct way to handle this:

(a) let the gpio-regulator select the max current (in contrast to the minimum
voltage)
(b) change gpio-vbus to also use the target current as min and max value
(c) something else


Thanks
Heiko


\
 
 \ /
  Last update: 2012-08-06 01:41    [W:0.044 / U:1.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site