Thread (8 messages) flat view 8 messages, 1 author, 19d ago

Re: [PATCH net v4 5/6] net: phy: propagate errors from default port setup

From: Xuanqiang Luo <hidden>
Date: 2026-08-21 09:42:21
Also in: lkml

在 2026/8/21 15:03, Xuanqiang Luo 写道:
From: Xuanqiang Luo <redacted>

phy_default_setup_single_port() ignores errors from phy_add_port() and
always reports success. If a PHY driver attach_mdi_port() callback fails,
the phy_port is leaked and PHY probing continues without the expected
default port.

Destroy the port and return the error.

Fixes: 589e934d2735 ("net: phy: Introduce PHY ports representation")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Xuanqiang Luo <redacted>
I realized I made a mistake.

The Reviewed-by tag added to patch 5/6 should be:

Maxime Chevallier [off-list ref]
rather than:
Andrew Lunn [off-list ref]

Sorry for the mistake. I will send a corrected version after 24 hours.

Thanks,
Xuanqiang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help