Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii For 78Q2120 revisions 3 and earlier, punt to ukp...
details: https://anonhg.NetBSD.org/src/rev/c343e879c47b
branches: trunk
changeset: 525697:c343e879c47b
user: mycroft <mycroft%NetBSD.org@localhost>
date: Mon Apr 15 16:50:52 2002 +0000
description:
For 78Q2120 revisions 3 and earlier, punt to ukphy, as our special media status
routine does not work on those chips.
diffstat:
sys/dev/mii/tqphy.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r a66f089b4ef2 -r c343e879c47b sys/dev/mii/tqphy.c
--- a/sys/dev/mii/tqphy.c Mon Apr 15 16:47:03 2002 +0000
+++ b/sys/dev/mii/tqphy.c Mon Apr 15 16:50:52 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tqphy.c,v 1.17 2002/03/25 20:51:26 thorpej Exp $ */
+/* $NetBSD: tqphy.c,v 1.18 2002/04/15 16:50:52 mycroft Exp $ */
/*
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tqphy.c,v 1.17 2002/03/25 20:51:26 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tqphy.c,v 1.18 2002/04/15 16:50:52 mycroft Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -122,8 +122,13 @@
{
struct mii_attach_args *ma = aux;
- if (mii_phy_match(ma, tqphys) != NULL)
+ if (mii_phy_match(ma, tqphys) != NULL) {
+ /* The DIAG register is unreliable on early revisions. */
+ if (MII_MODEL(ma->mii_id2) == MII_MODEL_xxTSC_78Q2120 &&
+ MII_REV(ma->mii_id2) <= 3)
+ return (0);
return (10);
+ }
return (0);
}
Home |
Main Index |
Thread Index |
Old Index