Re: [PATCH] net: macb: fix unregister_netdev call order in macb_remove()

From: Jakub Kicinski
Date: Mon Aug 18 2025 - 13:00:08 EST


On Sun, 17 Aug 2025 08:39:25 +0800 luoguangfei wrote:
> The warning happens because the PHY is being exited while the netdev
> is still registered. The correct order is to unregister the netdev
> before shutting down the PHY and cleaning up the MDIO bus.
>
> Fix this by moving unregister_netdev() ahead of phy_exit() in
> macb_remove().
>
> Signed-off-by: luoguangfei <15388634752@xxxxxxx>

Please add an appropriate Fixes tag, pointing to the oldest commit
where issues could be reproduced.
--
pw-bot: cr