[PATCH] net: phy: ethernet_id: fix duplicate eth_phy binding
Marek Vasut
marek.vasut at mailbox.org
Mon Apr 6 18:05:05 CEST 2026
On 4/6/26 10:41 AM, Pranav Tilak wrote:
> When both CONFIG_PHY_ETHERNET_ID and CONFIG_DM_ETH_PHY are enabled,
> eth_phy_binds_nodes() called from eth_post_bind() already binds the
> ethernet PHY node to eth_phy_generic_drv. However, phy_connect_phy_id()
> called via zynq_phy_init() -> phy_connect() cannot attach to the
> already bound PHY device and creates a second instance, resulting
> in duplicate entries in the dm tree.
>
> Fix this by guarding the bind/probe block in phy_connect_phy_id()
> with uclass_get_device_by_ofnode() to skip re-binding if the PHY
> node is already registered in UCLASS_ETH_PHY.
Shouldn't phy_connect() check whether the PHY isn't already bound and
bail early if it is ?
More information about the U-Boot
mailing list