RE: [PATCH net-next v3 11/14] net: phy: ncn26000: Support for loopback support

From: Selvamani Rajagopal

Date: Mon Jun 01 2026 - 13:06:13 EST


> > +static int ncn26000_loopback(struct phy_device *phydev, bool enable,
> > + int speed)
> > +{
> > + u16 mask = BMCR_LOOPBACK;
> > + u16 ctl = 0;
> > +
> > + if (enable)
> > + ctl = BMCR_LOOPBACK;
> > + return phy_modify(phydev, MII_BMCR, mask, ctl);
> > +}
>
> dp83867_loopback().
>
> There is already genphy_loopback(), so it will need a name to indicate
> the speed does not matter, because only one speed is supported etc.

Andrew,

How about genphy_loopback_fixed_speed.


>
> Andrew