Re: [PATCH] net: phy: Add driver for Motorcomm Quad 2.5GbE phy

From: Andrew Lunn

Date: Tue Jul 14 2026 - 17:47:58 EST


> +static inline int ytphy_top_write(struct phy_device *phydev, u32 regnum,
> + u16 val)
> +{
> + struct yt8521_priv *priv = phydev->priv;
> + struct mii_bus *bus = phydev->mdio.bus;
> +
> + return bus->write(bus, priv->top_phy_addr, regnum, val);
> +}

Please could you explain the architecture in detail. It seems like you
are accessing registers of some other device on the bus.

Maybe you need to use the code in phy_package.c?

Andrew