Subject: Re: [PATCH net-next 1/2] net: phy: realtek: add PHY driver for RTL8127ATF

From: Fabio Baltieri <[email-masked]>
Date: Thu, 8 Jan 2026 23:20:21 +0000

On Thu, Jan 08, 2026 at 10:56:14PM +0000, Daniel Golle wrote:
> > +static int rtlgen_sfp_read_status(struct phy_device *phydev)
> > +{
> > +	int val, err;
> > +
> > +	err = genphy_update_link(phydev);
> > +	if (err)
> > +		return err;
> > +
> > +	if (!phydev->link)
> > +		return 0;
> > +
> > +	val = rtlgen_read_vend2(phydev, RTL_VND2_PHYSR);
> 
> This should be the same as
> phy_read(phydev, MII_RESV2); /* on page 0 */
> Please try.

Tried it on my setup, the two calls do indeed seem to return the same
value.