Re: [PATCH net-next 0/3] net: enetc: add port MDIO support for both i.MX94 and i.MX95

From: Andrew Lunn

Date: Fri Oct 31 2025 - 08:31:28 EST


> What we get from the DT is the external PHY address, just like the mdio
> driver, this external PHY address based on the board, ENETC needs to
> know its external PHY address so that its port MIDO can work properly.

So i don't get this. MDIO is just a bus, two lines. It can have up to
32 devices on it. The bus master should not need to have any idea what
devices are on it, it just twiddles the lines as requested.

Why does it need to know the external PHY address? In general, the
only thing which needs to know the PHY address is phylib.

Andrew