Module Name:    src
Committed By:   msaitoh
Date:           Mon Feb 25 06:59:37 UTC 2019

Modified Files:
        src/sys/dev/mii: rgephy.c rgephyreg.h

Log Message:
 It seems EEE support is not only on 8211F but on 8211D and newer.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/mii/rgephy.c
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/mii/rgephyreg.h

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/rgephy.c
diff -u src/sys/dev/mii/rgephy.c:1.48 src/sys/dev/mii/rgephy.c:1.49
--- src/sys/dev/mii/rgephy.c:1.48	Sun Feb 24 17:22:21 2019
+++ src/sys/dev/mii/rgephy.c	Mon Feb 25 06:59:37 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: rgephy.c,v 1.48 2019/02/24 17:22:21 christos Exp $	*/
+/*	$NetBSD: rgephy.c,v 1.49 2019/02/25 06:59:37 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2003
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.48 2019/02/24 17:22:21 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.49 2019/02/25 06:59:37 msaitoh Exp $");
 
 
 /*
@@ -696,7 +696,7 @@ rgephy_reset(struct mii_softc *sc)
 	/* NWay enable and Restart NWay */
 	PHY_WRITE(sc, MII_BMCR, BMCR_RESET | BMCR_AUTOEN | BMCR_STARTNEG);
 
-	if (sc->mii_mpd_rev == RGEPHY_8211F) {
+	if (sc->mii_mpd_rev >= RGEPHY_8211D) {
 		/* RTL8211F */
 		delay(10000);
 		/* disable EEE */

Index: src/sys/dev/mii/rgephyreg.h
diff -u src/sys/dev/mii/rgephyreg.h:1.11 src/sys/dev/mii/rgephyreg.h:1.12
--- src/sys/dev/mii/rgephyreg.h:1.11	Wed Jun 27 07:51:36 2018
+++ src/sys/dev/mii/rgephyreg.h	Mon Feb 25 06:59:37 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: rgephyreg.h,v 1.11 2018/06/27 07:51:36 msaitoh Exp $	*/
+/*	$NetBSD: rgephyreg.h,v 1.12 2019/02/25 06:59:37 msaitoh Exp $	*/
 
 /*
  * Copyright (c) 2003
@@ -39,6 +39,7 @@
 
 #define	RGEPHY_8211B		2
 #define	RGEPHY_8211C		3
+#define	RGEPHY_8211D		4
 #define	RGEPHY_8211E		5
 #define	RGEPHY_8211F		6
 

Reply via email to