Re: [PATCH net] net: ibm: emac: attach the fixed-link PHY with of_phy_connect()

From: Andrew Lunn

Date: Mon Nov 23 2026 - 09:56:00 EST


> of_phy_connect() only stores the handler in phydev->adjust_link, attach
> never calls it. The state machine is not started on this path either -
> emac_mdio_init_phy() runs only for the phy-handle case - so nothing else
> fills in dev->phy, which emac_configure() reads to build MR1. A fixed link
> cannot change, so calling it once is enough.

The whole point of fixed-link is that it works like a real PHY. You
should not special case it other than when creating it and destroying
it. You should call phy_start/phy_stop. When start is called, phylib
will call the adjust link callback, same as a real PHY, and setup the
MAC as needed.

Andrew