Messages in this thread | | | From | Heiko Stübner <> | Subject | Re: regulator: Policy for setting current limits | Date | Tue, 7 Aug 2012 01:19:34 +0200 |
| |
Am Montag, 6. August 2012, 13:56:33 schrieb Mark Brown: > On Mon, Aug 06, 2012 at 01:27:56AM +0200, Heiko Stübner wrote: > > 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. > > This isn't good, it means that the regulator has to be able to deliver > exactly the limit requested. > > > (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 > > Regulators should be tending to the maximum in the available range and > consumers should specify the widest range possible so both a and b.
Is this true for all regulators (i.e. voltage and currency regulators)?
Because 4dbd8f63f07a (regulator: gpio-regulator: Set the smallest voltage/current in the specified range) implemented the exact oposite.
Thanks Heiko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |