All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v1 0/2] net: phy: fix driver cleanup after probe failure
@ 2026-08-12 12:51 Xuanqiang Luo
  2026-08-12 12:51 ` [PATCH net v1 1/2] net: phy: split phy_probe() error paths Xuanqiang Luo
  2026-08-12 12:51 ` [PATCH net v1 2/2] net: phy: call driver remove when core initialization fails Xuanqiang Luo
  0 siblings, 2 replies; 5+ messages in thread
From: Xuanqiang Luo @ 2026-08-12 12:51 UTC (permalink / raw)
  To: netdev
  Cc: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni,
	linux-kernel, Xuanqiang Luo

From: Xuanqiang Luo <luoxuanqiang@kylinos.cn>

Patch 1 splits the phy_probe() error paths and makes phy_setup_ports()
unwind its own resources.

Patch 2 calls the PHY driver remove callback when phy_probe() fails after
the driver probe callback succeeds.

Xuanqiang Luo (2):
  net: phy: split phy_probe() error paths
  net: phy: call driver remove when core initialization fails

 drivers/net/phy/phy_device.c | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)


base-commit: db2ddb87143519e20a95aa36c60b36107b736a58
-- 
2.43.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-12 16:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-12 12:51 [PATCH net v1 0/2] net: phy: fix driver cleanup after probe failure Xuanqiang Luo
2026-08-12 12:51 ` [PATCH net v1 1/2] net: phy: split phy_probe() error paths Xuanqiang Luo
2026-08-12 13:41   ` Andrew Lunn
2026-08-12 16:05     ` Maxime Chevallier
2026-08-12 12:51 ` [PATCH net v1 2/2] net: phy: call driver remove when core initialization fails Xuanqiang Luo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.