On Tue, Dec 01, 2015 at 03:04:36PM +0100, Maxime Ripard wrote: > On Mon, Nov 30, 2015 at 10:17:45AM -0700, Mathieu Poirier wrote: > > On 30 November 2015 at 08:29, Maxime Ripard > > > + for (i = 0; i < creg->n_regulators; i++) { > > > + ret = regulator_disable(creg->regulators[i]); > > > + if (ret) > > > + break; > > > + } > > What happens to the other regulators when an element of the chain > > fails to disable? Should they be powered on again? > That's actually a very good question, and I don't have a good answer > to it. I guess the safest approach would be to roll back and do the > opposite operation on the one we previously enabled / disabled. > I wonder whether it might damage the hardware or not though. > Mark? Yeah, I'd expect us to try to unwind everything - presumably if the supplies are partially enabled we'll not be able to satisfy the power demands of whatever is connected (otherwise why would you create such an innovative hardware design?) and it'll also mean that the refcounting will be off if we ever try to do anything with the supply again.
Attachment:
signature.asc
Description: PGP signature