On Wed, Sep 02, 2009 at 11:37:00PM +0200, Linus Walleij wrote:
The sleep settings are driven by two HW lines, so a regulator
can react by suspending the regulator on line A or B disjunct
either (logical ||) or both (logical &&). (You don't alter that in
runtime so no API has been developed here.)
OK, that's fine - it's setting things outside the normal API flow which
is all that I was asking.
And I don't see any way for the core (set_machine_constraints)
to set regulators to *off* by default if they happen to be on at
boot.
That'd be a boot_off constraint if someone requires it. So far nobody
has - there's not going to be many cases where it's appropriate to do
so, normally either you want to leave the supplies on for the device
driver that's taking control of the device or it does no harm to wait
till the end of init.