Module Name:    src
Committed By:   cegger
Date:           Fri Mar 27 04:42:51 UTC 2009

Modified Files:
        src/sys/dev/mii: atphy.c

Log Message:
use auto-negotiation for manual media type selection.
This should fix establishment of 10/100Mbps link on L1E.
Helpful to reduce watchdog timeout problems on L1 (age(4)) reported by Jochen 
Kunz.
>From FreeBSD via OpenBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/mii/atphy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/mii/atphy.c
diff -u src/sys/dev/mii/atphy.c:1.4 src/sys/dev/mii/atphy.c:1.5
--- src/sys/dev/mii/atphy.c:1.4	Thu Feb 12 13:38:49 2009
+++ src/sys/dev/mii/atphy.c	Fri Mar 27 04:42:50 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: atphy.c,v 1.4 2009/02/12 13:38:49 cegger Exp $ */
+/*	$NetBSD: atphy.c,v 1.5 2009/03/27 04:42:50 cegger Exp $ */
 /*	$OpenBSD: atphy.c,v 1.1 2008/09/25 20:47:16 brad Exp $	*/
 
 /*-
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.4 2009/02/12 13:38:49 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.5 2009/03/27 04:42:50 cegger Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -218,7 +218,8 @@
 		/*
 		 * 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;
 

Reply via email to