[PATCH 1/2] regulator: Add coupled regulator
From: broonie@kernel.org (Mark Brown)
Date: 2015-12-01 18:59:10
Also in:
linux-devicetree, lkml
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:quoted
On 30 November 2015 at 08:29, Maxime Ripard
quoted
quoted
+ for (i = 0; i < creg->n_regulators; i++) { + ret = regulator_disable(creg->regulators[i]); + if (ret) + break; + }
quoted
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. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151201/ae881dca/attachment-0001.sig>