On Wed, May 27, 2015 at 10:58:01PM +0200, Stefan Wahren wrote:
In case of a single driver instance instead of 4 ones (vddd, vddio, vdda,
dc-dc), things would be much easier.
Here are the steps for disabling DC-DC:
1. configure vddio to work without DC-DC
2. configure vdda to work without DC-DC
3. configure vddd to work without DC-DC
4. backup DC-DC settings
5. disable brownout detection
6. disable DC-DC
7. restore DC-DC settings
My problem is that step 1 to 3 must be done step by step through the other
regulator instances.
For the regulator API steps 1-3 aren't going to be needed since
dependency management means that we won't try to disable a regulator
that we think is in use.
quoted
If it's much more complicated than that
then I think putting a comment in the driver explaining what the issue
is would be the right step, that would address the issue with the driver
looking strange.
Enabling or disabling DC-DC is only needed internally by the power subsystem
(e.g. in case of handoff AC to battery), because the DC-DC only supplys the
regulator daisy. From my understanding hardware components could use only the
regulator outputs. In the end a state change is necessary, but it shouldn't be a
public.
Should this actually be shown as a regulator then and not as part of the
power controller?