svn commit: r213867 - head/sys/dev/mii
Marius Strobl
marius at FreeBSD.org
Thu Oct 14 21:30:14 UTC 2010
Author: marius
Date: Thu Oct 14 21:30:13 2010
New Revision: 213867
URL: http://svn.freebsd.org/changeset/base/213867
Log:
Just like xmphy(4) this driver doesn't use any of the generic subroutines
so there's no need to fill mii_{ext,}capabilities either.
Modified:
head/sys/dev/mii/brgphy.c
Modified: head/sys/dev/mii/brgphy.c
==============================================================================
--- head/sys/dev/mii/brgphy.c Thu Oct 14 21:29:51 2010 (r213866)
+++ head/sys/dev/mii/brgphy.c Thu Oct 14 21:30:13 2010 (r213867)
@@ -279,10 +279,6 @@ 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)
More information about the svn-src-all
mailing list