Revert r213867; while this driver really doesn't use any of the generic

subroutines, at least mii_capabilities is used within itself.
This commit is contained in:
Marius Strobl 2010-10-18 08:36:03 +00:00
parent bc92b07848
commit c1ff8fd19a

View File

@ -280,6 +280,10 @@ brgphy_attach(device_t dev)
brgphy_reset(sc);
/* Read the PHY's capabilities. */
sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
if (sc->mii_capabilities & BMSR_EXTSTAT)
sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR);
device_printf(dev, " ");
#define ADD(m, c) ifmedia_add(&mii->mii_media, (m), (c), NULL)