Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii It seems EEE support is not only on 8211F but on...
details: https://anonhg.NetBSD.org/src/rev/4d1cad48af28
branches: trunk
changeset: 449184:4d1cad48af28
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Feb 25 06:59:37 2019 +0000
description:
It seems EEE support is not only on 8211F but on 8211D and newer.
diffstat:
sys/dev/mii/rgephy.c | 6 +++---
sys/dev/mii/rgephyreg.h | 3 ++-
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r f094020e1b10 -r 4d1cad48af28 sys/dev/mii/rgephy.c
--- a/sys/dev/mii/rgephy.c Mon Feb 25 06:49:44 2019 +0000
+++ b/sys/dev/mii/rgephy.c Mon Feb 25 06:59:37 2019 +0000
@@ -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 @@
/* 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 */
diff -r f094020e1b10 -r 4d1cad48af28 sys/dev/mii/rgephyreg.h
--- a/sys/dev/mii/rgephyreg.h Mon Feb 25 06:49:44 2019 +0000
+++ b/sys/dev/mii/rgephyreg.h Mon Feb 25 06:59:37 2019 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index