Re: [PATCH] iio: light: gp2ap002: Disable regulators on resume failure
From: Andy Shevchenko
Date: Sat Jul 04 2026 - 08:12:38 EST
On Sat, Jul 04, 2026 at 02:19:12PM +0545, Laxman Acharya Padhya wrote:
> If enabling VIO fails after VDD has been enabled, runtime resume
> returns without disabling VDD. Likewise, if device reinitialization
> fails, both supplies remain enabled. The runtime PM core keeps the
> device suspended when its resume callback fails, so the supplies must
> be restored to the suspended state.
>
> Disable the supplies enabled by the callback before returning an error.
Sounds legit. However, I can't be fully sure. Let's wait for others to look at
this and comment.
--
With Best Regards,
Andy Shevchenko