svn commit: r184253 - head/sys/dev/mii

Pyun YongHyeon yongari at FreeBSD.org
Fri Oct 24 23:39:17 PDT 2008


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;
 


More information about the svn-src-head mailing list