public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* regulator: Policy for setting current limits
@ 2012-08-05 23:27 Heiko Stübner
  2012-08-06 11:56 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Heiko Stübner @ 2012-08-05 23:27 UTC (permalink / raw)
  To: Mark Brown; +Cc: Liam Girdwood, linux-kernel, Axel Lin

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-08-07 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-05 23:27 regulator: Policy for setting current limits Heiko Stübner
2012-08-06 11:56 ` Mark Brown
2012-08-06 23:19   ` Heiko Stübner
2012-08-07 17:06     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox