aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mii
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2010-10-30 20:51:25 +0000
committerMarius Strobl <marius@FreeBSD.org>2010-10-30 20:51:25 +0000
commitf5a18221318aa4c97e11e0d213de098f9d2ebcfb (patch)
tree8a6a58d6f9f253ac60da0b1bafbe059d4382c591 /sys/dev/mii
parent13a6cf24ac3cc966b773e07f38a9fdc6b321e29c (diff)
downloadsrc-f5a18221318aa4c97e11e0d213de098f9d2ebcfb.tar.gz
src-f5a18221318aa4c97e11e0d213de098f9d2ebcfb.zip
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.
Notes
Notes: svn path=/head/; revision=214566
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/e1000phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mii/e1000phy.c b/sys/dev/mii/e1000phy.c
index e763c21c4726..f49f7c48c6a6 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);