RE: [PATCH v3 net-next 2/3] net: enetc: set external PHY address in IERB for i.MX94 ENETC
From: Claudiu Manoil
Date: Wed Nov 19 2025 - 10:20:11 EST
> -----Original Message-----
> From: Wei Fang <wei.fang@xxxxxxx>
> Sent: Wednesday, November 19, 2025 12:26 PM
[...]
> Subject: [PATCH v3 net-next 2/3] net: enetc: set external PHY address in IERB
> for i.MX94 ENETC
>
> NETC IP has only one external master MDIO interface (eMDIO) for managing
> the external PHYs. ENETC can use the interfaces provided by the EMDIO
> function or its port MDIO to access and manage its external PHY. Both
> the EMDIO function and the port MDIO are all virtual ports of the eMDIO.
>
> The difference is that the EMDIO function is a 'global port', it can
> access all the PHYs on the eMDIO, but port MDIO can only access its own
> PHY. To ensure that ENETC can only access its own PHY through port MDIO,
> LaBCR[MDIO_PHYAD_PRTAD] needs to be set, which represents the address
> of
> the external PHY connected to ENETC. If the accessed PHY address is not
> consistent with LaBCR[MDIO_PHYAD_PRTAD], then the MDIO access initiated
> by port MDIO will be invalid.
>
> Signed-off-by: Wei Fang <wei.fang@xxxxxxx>
> ---
Reviewed-by: Claudiu Manoil <claudiu.manoil@xxxxxxx>