Author: marius
Date: Sat Oct 30 20:51:25 2010
New Revision: 214566
URL: http://svn.freebsd.org/changeset/base/214566

Log:
  Correct a bug in r213893; within a PHY driver MIIF_PHYPRIVn should be used
  instead of MIIF_MACPRIVn. This didn't make a functional difference though.

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

Modified: head/sys/dev/mii/e1000phy.c
==============================================================================
--- head/sys/dev/mii/e1000phy.c Sat Oct 30 18:52:44 2010        (r214565)
+++ head/sys/dev/mii/e1000phy.c Sat Oct 30 20:51:25 2010        (r214566)
@@ -206,7 +206,7 @@ e1000phy_reset(struct mii_softc *sc)
                        reg &= ~E1000_SCR_MODE_MASK;
                        reg |= E1000_SCR_MODE_1000BX;
                        PHY_WRITE(sc, E1000_SCR, reg);
-                       if ((sc->mii_flags & MIIF_MACPRIV0) != 0) {
+                       if ((sc->mii_flags & MIIF_PHYPRIV0) != 0) {
                                /* Set SIGDET polarity low for SFP module. */
                                PHY_WRITE(sc, E1000_EADR, 1);
                                reg = PHY_READ(sc, E1000_SCR);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to