diff options
author | marius <marius@FreeBSD.org> | 2010-10-30 20:51:25 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-10-30 20:51:25 +0000 |
commit | caa01e3c92e993d78c971129c5b8d000237337a4 (patch) | |
tree | 8a6a58d6f9f253ac60da0b1bafbe059d4382c591 /sys/dev/mii | |
parent | d198c87916244d40cd4328a88792df9c0f13fefe (diff) | |
download | FreeBSD-src-caa01e3c92e993d78c971129c5b8d000237337a4.zip FreeBSD-src-caa01e3c92e993d78c971129c5b8d000237337a4.tar.gz |
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.
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/e1000phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/e1000phy.c b/sys/dev/mii/e1000phy.c index e763c21..f49f7c4 100644 --- a/sys/dev/mii/e1000phy.c +++ b/sys/dev/mii/e1000phy.c @@ -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); |