Re: [PATCH net] net: phy: don't require RTNL to detach a PHY from an unregistered netdev
From: patchwork-bot+netdevbpf
Date: Mon Nov 02 2026 - 12:27:30 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Thu, 29 Oct 2026 21:24:23 +0700 you wrote:
> phy_detach_internal() reads dev->hwprov with rtnl_dereference(), but
> MAC drivers commonly attach and detach PHYs while their net_device is
> not registered, without holding RTNL. Before register_netdev(), a failed
> phylink_connect_phy() or phy_attach_direct() unwinds through
> phy_detach_internal(). After unregister_netdev(), a driver's remove path
> may call phy_disconnect(). Both trip lockdep:
>
> [...]
Here is the summary with links:
- [net] net: phy: don't require RTNL to detach a PHY from an unregistered netdev
https://git.kernel.org/netdev/net/c/d1cf56164dc2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html