Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 2008 06:39:17 +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: r184253 - head/sys/dev/mii
Message-ID:  <200810250639.m9P6dHCd023802@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Sat Oct 25 06:39:17 2008
New Revision: 184253
URL: http://svn.freebsd.org/changeset/base/184253

Log:
  Use auto-negotiation for manual media type selection. This fixes
  establishment of 10/100Mbps link on Atheros AR8121(L1E).

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

Modified: head/sys/dev/mii/atphy.c
==============================================================================
--- head/sys/dev/mii/atphy.c	Sat Oct 25 06:25:15 2008	(r184252)
+++ head/sys/dev/mii/atphy.c	Sat Oct 25 06:39:17 2008	(r184253)
@@ -217,7 +217,8 @@ atphy_service(struct mii_softc *sc, stru
 		/*
 		 * Reset the PHY so all changes take effect.
 		 */
-		PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_RESET);
+		PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_RESET | BMCR_AUTOEN |
+		    BMCR_STARTNEG);
 done:
 		break;
 



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