> > This moves rgephy(4) back to using RL_GMEDIASTAT to read the link/media > > status for re(4) attached Realtek PHY as was done before rev 1.25. rev > > 1.25 was to add support for external rgephy(4) attached to other MAC > > such as nfe(4), but the PHY Specific Status register doesn't seem to > > work properly with some integrated PHY with re(4). > > > > Tested with.. > > rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 > > rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 4 > > rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5 > > > > and some newer PHY where this was problematic but existing 8169 PHY > > rev board combos are affected too. > > > > >From FreeBSD and matches what the Linux driver does. > > I hate mii(4) drivers that look at the name of their parent!
Unfortunately it is a harsh reality that some of these PHY's are sometimes integrated unified-fashion into a MAC chip, without evident register changes to identify them, and then they have a subtly different behaviour. It happens in Broadcom products too.