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

Xuanqiang Luo <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
在 2026/8/21 15:03, Xuanqiang Luo 写道:

> From: Xuanqiang Luo <[email protected]>
>
> 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 <[email protected]>
> Signed-off-by: Xuanqiang Luo <[email protected]>

I realized I made a mistake.

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

Maxime Chevallier <[email protected]>
rather than:
Andrew Lunn <[email protected]>

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

Thanks,
Xuanqiang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.