diff options
author | marius <marius@FreeBSD.org> | 2006-12-18 02:14:26 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2006-12-18 02:14:26 +0000 |
commit | 33e78272c0c50b2d25dfbba9f2f3a7b819ebcc1b (patch) | |
tree | 88ffc164578e47e6213a8d2f879f295a33ee4428 /sys/dev/mii | |
parent | ac2910d537a96ef0b9949a09814f77efe3f3ec20 (diff) | |
download | FreeBSD-src-33e78272c0c50b2d25dfbba9f2f3a7b819ebcc1b.zip FreeBSD-src-33e78272c0c50b2d25dfbba9f2f3a7b819ebcc1b.tar.gz |
Correct the previous change:
- If we want mii_phy_add_media() to add 1000baseT media, we need to
supply sc->mii_extcapabilities.
- Fix formatting when announcing autonegotiation support.
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/rgephy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/mii/rgephy.c b/sys/dev/mii/rgephy.c index ba07489..6d6008c 100644 --- a/sys/dev/mii/rgephy.c +++ b/sys/dev/mii/rgephy.c @@ -131,11 +131,14 @@ rgephy_attach(device_t dev) sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask; sc->mii_capabilities &= ~BMSR_ANEG; + if (sc->mii_capabilities & BMSR_EXTSTAT) + sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); device_printf(dev, " "); mii_phy_add_media(sc); /* RTL8169S do not report auto-sense; add manually. */ ADD(IFM_MAKEWORD(IFM_ETHER, IFM_AUTO, 0, sc->mii_inst), MII_NMEDIA); + sep = ", "; PRINT("auto"); printf("\n"); #undef ADD |