Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Sep 2009 19:53:54 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197588 - head/sys/dev/mii
Message-ID:  <200909281953.n8SJrssD064345@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Mon Sep 28 19:53:53 2009
New Revision: 197588
URL: http://svn.freebsd.org/changeset/base/197588

Log:
  Some fiber PHY(88E1112) does not seem to set resolved speed so
  always assume we've got IFM_1000_SX.

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

Modified: head/sys/dev/mii/e1000phy.c
==============================================================================
--- head/sys/dev/mii/e1000phy.c	Mon Sep 28 19:48:17 2009	(r197587)
+++ head/sys/dev/mii/e1000phy.c	Mon Sep 28 19:53:53 2009	(r197588)
@@ -485,8 +485,11 @@ e1000phy_status(struct mii_softc *sc)
 			return;
 		}
 	} else {
-		if (ssr & E1000_SSR_1000MBS)
-			mii->mii_media_active |= IFM_1000_SX;
+		/*
+		 * Some fiber PHY(88E1112) does not seem to set resolved
+		 * speed so always assume we've got IFM_1000_SX.
+		 */
+		mii->mii_media_active |= IFM_1000_SX;
 	}
 
 	if (ssr & E1000_SSR_DUPLEX)



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