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;
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to