[PATCH net v3 0/4] net: phy: some cleanups following phy_port SFP

From: Maxime Chevallier

Date: Thu Jun 04 2026 - 05:31:24 EST


While posting the v11 of phy_port netlink, sashiko found some
pre-existing issues, and following the tentative fix, Nicolai found
some more :)

This is V3, with a re-ordering of the port/sfp cleanup, as well as a new
patch (patch 3) that also reorders the phy_remove() path.

V3 :
- Re-order port cleanup and sfp cleanup
- patch 3 is new
- Fix typo wich -> which
- Add Nicolai's revies

V2 : https://lore.kernel.org/r/20260601084029.815461-1-maxime.chevallier@xxxxxxxxxxx
- Add port cleanup - Nicolai
- Don't probe SFP for genphy drivers - sashiko

V1 : https://lore.kernel.org/r/20260530072706.3167745-1-maxime.chevallier@xxxxxxxxxxx

Maxime Chevallier (4):
net: phy: clean the sfp upstream if phy probing fails
net: phy: remove phy ports upon probe failure
net: phy: Clean the phy_ports after unregistering the downstream SFP
bus
net: phy: don't try to setup PHY-driven SFP cages when using genphy

drivers/net/phy/phy_device.c | 24 +++++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)

--
2.54.0