Re: [PATCH net 2/5] net: dsa: mt7530: factor out mt7530_disable_pwrs()

From
Andrew Lunn <andrew@lunn.ch>
Date
2026-11-24 18:35:24
Also in
linux-mediatek, lkml, netdev
Reply to
Haoran Wang, 2026-11-24
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
Thread (15 messages) 15 messages, 4 authors, last reply 1d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help