Author: marius
Date: Mon Oct 18 08:36:03 2010
New Revision: 214012
URL: http://svn.freebsd.org/changeset/base/214012

Log:
  Revert r213867; while this driver really doesn't use any of the generic
  subroutines, at least mii_capabilities is used within itself.

Modified:
  head/sys/dev/mii/brgphy.c

Modified: head/sys/dev/mii/brgphy.c
==============================================================================
--- head/sys/dev/mii/brgphy.c   Mon Oct 18 07:28:53 2010        (r214011)
+++ head/sys/dev/mii/brgphy.c   Mon Oct 18 08:36:03 2010        (r214012)
@@ -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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to