public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* boot_on regulator constraint vs. regulator-boot-on DT property
@ 2012-06-20 20:55 Stephen Warren
  2012-06-20 23:46 ` Mark Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Warren @ 2012-06-20 20:55 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, linux-kernel@vger.kernel.org

Liam, Mark,

I've spotted what seems like a slight inconsistency between the
documentation for the boot_on regulator constraint, and the
regulator-boot-on DT property documentation.

include/linux/regulator/machine.h says:

>  * @boot_on: Set if the regulator is enabled when the system is initially
>  *           started.  If the regulator is not enabled by the hardware or
>  *           bootloader then it will be enabled when the constraints are
>  *           applied.

Documentation/devicetree/bindings/regulator/regulator.txt says:

> - regulator-boot-on: bootloader/firmware enabled regulator

... and of_regulator.c sets the boot_on constraint based on this property.

The former quote implies that this is a flag to tell Linux to turn on
the regulator when it's first registered, whereas the latter quote
implies that it's guaranteeing the state that previous SW placed the
regulator into already.

I assume the documentation from machine.h is correct, and I should send
a patch to make regulator.txt match it?

Thanks.

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

end of thread, other threads:[~2012-06-21  9:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-20 20:55 boot_on regulator constraint vs. regulator-boot-on DT property Stephen Warren
2012-06-20 23:46 ` Mark Brown
2012-06-21  1:26   ` Stephen Warren
2012-06-21  9:12     ` Mark Brown

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