RE: [PATCH v3 net-next 1/3] net: enetc: set the external PHY address in IERB for port MDIO usage
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 1/3] net: enetc: set the external PHY address in
> IERB for port MDIO usage
>
> The ENETC supports managing its own external PHY through its port MDIO
> functionality. To use this function, the PHY address needs be set in the
> corresponding LaBCR register in the Integrated Endpoint Register Block
> (IERB), which is used for pre-boot initialization of NETC PCIe functions.
> The port MDIO can only work properly when the PHY address accessed by the
> port MDIO matches the corresponding LaBCR[MDIO_PHYAD_PRTAD] value.
>
> Because the ENETC driver only registers the MDIO bus (port MDIO bus) when
> it detects an MDIO child node in its node, similarly, the netc-blk-ctrl
> driver only resolves the PHY address and sets it in the corresponding
> LaBCR when it detects an MDIO child node in the ENETC node.
>
> Co-developed-by: Aziz Sellami <aziz.sellami@xxxxxxx>
> Signed-off-by: Aziz Sellami <aziz.sellami@xxxxxxx>
> Signed-off-by: Wei Fang <wei.fang@xxxxxxx>
> ---
Reviewed-by: Claudiu Manoil <claudiu.manoil@xxxxxxx>