Subject: Re: rgephy auto
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Jonathan Stone <jonathan@dsg.stanford.edu>
List: tech-kern
Date: 01/21/2005 10:34:59
In message <1106310038.044911.6399.nullmailer@yamt.dyndns.org>,
YAMAMOTO Takashi writes:

>hi,
>
>rgephy.c clears BMSR_ANEG
>
>	sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
>	sc->mii_capabilities &= ~BMSR_ANEG;
>
>and adds it later explicitly.
>
>	/* rtl8169S does not report auto-sense; add manually.  */
>	ADD(IFM_MAKEWORD(IFM_ETHER, IFM_AUTO, 0, sc->mii_inst), MII_NMEDIA);
>
>is this really needed?
>my GA511 seems to report "auto".

I think it depends on the stepping. IIRC, my card did not report auto.
I also understand (from the FreeBSD code or from docs) that integrated
PHYs with the older MII do not report auto.

I guess I need to find one of the older chips...