Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Oct 2010 20:51:25 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r214566 - head/sys/dev/mii
Message-ID:  <201010302051.o9UKpPAp021287@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010302051.o9UKpPAp021287>