All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Heiko Stübner" <heiko@sntech.de>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <lrg@ti.com>,
	linux-kernel@vger.kernel.org, Axel Lin <axel.lin@gmail.com>
Subject: regulator: Policy for setting current limits
Date: Mon, 6 Aug 2012 01:27:56 +0200	[thread overview]
Message-ID: <201208060127.57074.heiko@sntech.de> (raw)

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

             reply	other threads:[~2012-08-05 23:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-05 23:27 Heiko Stübner [this message]
2012-08-06 11:56 ` regulator: Policy for setting current limits Mark Brown
2012-08-06 23:19   ` Heiko Stübner
2012-08-07 17:06     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201208060127.57074.heiko@sntech.de \
    --to=heiko@sntech.de \
    --cc=axel.lin@gmail.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lrg@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.