Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/dev/mii Pull up revision 1.28 (requested by martin):



details:   https://anonhg.NetBSD.org/src/rev/dc8c7092bf14
branches:  netbsd-1-4
changeset: 470815:dc8c7092bf14
user:      he <he%NetBSD.org@localhost>
date:      Mon Jul 31 17:21:00 2000 +0000

description:
Pull up revision 1.28 (requested by martin):
  Fix autonegotiation problem with some fxp cards.  Fixes PR#10550.

diffstat:

 sys/dev/mii/nsphy.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 6468aff1bb12 -r dc8c7092bf14 sys/dev/mii/nsphy.c
--- a/sys/dev/mii/nsphy.c       Thu Jul 27 18:05:15 2000 +0000
+++ b/sys/dev/mii/nsphy.c       Mon Jul 31 17:21:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nsphy.c,v 1.16.6.1 1999/04/23 15:39:44 perry Exp $     */
+/*     $NetBSD: nsphy.c,v 1.16.6.2 2000/07/31 17:21:00 he Exp $        */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -218,14 +218,17 @@
                 */
                reg &= ~PCR_FLINK100;
 
-#if 0
                /*
                 * Mystery bits which are supposedly `reserved',
                 * but we seem to need to set them when the PHY
-                * is connected to some interfaces!
+                * is connected to some interfaces:
+                *
+                * 0x0400 is needed for fxp
+                *        (Intel EtherExpress Pro 10+/100B, 82557 chip)
+                *        (nsphy with a DP83840 chip)
+                * 0x0100 may be needed for some other card
                 */
                reg |= 0x0100 | 0x0400;
-#endif
 
                PHY_WRITE(sc, MII_NSPHY_PCR, reg);
 



Home | Main Index | Thread Index | Old Index