From: Tom Rini Date: Thu, 27 Dec 2018 10:48:18 -0500 Subject: [U-Boot] power: regulator: Return success on attempt to disable an always-on regulator In-Reply-To: <20181224110741.27015-1-lokeshvutla@ti.com> References: <20181224110741.27015-1-lokeshvutla@ti.com> Message-ID: <20181227154818.GP16433@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Dec 24, 2018 at 04:37:41PM +0530, Lokesh Vutla wrote: > commit 4f86a724e82c0 ("power: regulator: denied disable on always-on > regulator") throws an error when requested to disable an always-on > regulator. It is right that an always-on regulator should not be > attempted to be disabled. But at the same time regulator framework > should not return an error when such request is received. Instead > it should just return success without attempting to disable the > specified regulator. This is because the requesting driver will > not have the idea if the regulator is always-on or not. The > requesting driver will always try to enable/disable regulator as > per the required flow. So it is upto regulator framework to not > break such scenarios. > > Fixes: 4f86a724e82c0 ("power: regulator: denied disable on always-on regulator") > Reported-by: Jean-Jacques Hiblot > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: