svn commit: r214566 - head/sys/dev/mii
Marius Strobl
marius at FreeBSD.org
Sat Oct 30 20:51:25 UTC 2010
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);
More information about the svn-src-head
mailing list