From b91805b4cdb93f4c315bb149c69a048ff6c2b24b Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Mon, 18 Dec 2006 02:14:26 +0000 Subject: 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. --- sys/dev/mii/rgephy.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/mii') diff --git a/sys/dev/mii/rgephy.c b/sys/dev/mii/rgephy.c index ba074896e3cf..6d6008ce9740 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 -- cgit v1.3