Re: [PATCH net 2/5] net: dsa: mt7530: factor out mt7530_disable_pwrs()
From: Andrew Lunn
Date: Tue Nov 24 2026 - 13:35:32 EST
On Tue, Nov 24, 2026 at 04:25:57PM +0800, Haoran Wang wrote:
> Pull the regulator disable out of mt753x_teardown() into a helper so it
> can also be used on the setup error paths added in later patches.
>
> The helper stops reporting regulator_disable() failures. A failed
> disable on a teardown or error path is not actionable
While i agree there is no need to add code to try to recover from the
failed disabling, if the disable does fail, something is wrong
somewhere. So we want to know about it, so it can be investigated.
I would keep the error messages.
Andrew