diff options
author | marius <marius@FreeBSD.org> | 2010-10-18 08:36:03 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-10-18 08:36:03 +0000 |
commit | cc6463561fc24542e348614c8335c78f0ff753b6 (patch) | |
tree | 7f1c2b1bbeb0a7fd47b64ccca85cef646bbea08f /sys/dev/mii | |
parent | c6383206cee34193279c57877b88b9b63ae6041f (diff) | |
download | FreeBSD-src-cc6463561fc24542e348614c8335c78f0ff753b6.zip FreeBSD-src-cc6463561fc24542e348614c8335c78f0ff753b6.tar.gz |
Revert r213867; while this driver really doesn't use any of the generic
subroutines, at least mii_capabilities is used within itself.
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/brgphy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c index cf88d20..9f915df 100644 --- a/sys/dev/mii/brgphy.c +++ b/sys/dev/mii/brgphy.c @@ -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) |