Thread (10 messages) 10 messages, 2 authors, 2014-02-07

[PATCH] regulator: core: Make regulator object reflect configured voltage

From: broonie@kernel.org (Mark Brown)
Date: 2014-02-04 20:00:32
Also in: linux-arm-msm, lkml

On Tue, Feb 04, 2014 at 11:09:03AM -0800, Bjorn Andersson wrote:
I have a regulator that's being configured from DT as:
regulator-min-microvolt = <2950000>;
regulator-max-microvolt = <2950000>;
In the consumer I do regulator_set_voltage(2.95V).
As min == max the voltage is applied by the regulator framework on registration
of the regulator; and the regulator_set_voltage() fails as
REGULATOR_CHANGE_VOLTAGE is not set for this regulator.
So we should be changing the code to allow a set_voltage() that sets the
voltage to the existing voltage regardless of constraints allowing a
change then - that's what the underlying issue is.  Your change wouldn't
cover the case where the hardware defualt is being used for example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140204/0f13e826/attachment-0001.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help