Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Fix to autonegotiation problem with some fxp car...



details:   https://anonhg.NetBSD.org/src/rev/df4979189a17
branches:  trunk
changeset: 495432:df4979189a17
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jul 27 22:14:48 2000 +0000

description:
Fix to autonegotiation problem with some fxp cards. Fix found and reported
by Erich T. Enke et al. on current-users. This fixes PR 10550.

diffstat:

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

diffs (30 lines):

diff -r 3953bb72f442 -r df4979189a17 sys/dev/mii/nsphy.c
--- a/sys/dev/mii/nsphy.c       Thu Jul 27 21:59:21 2000 +0000
+++ b/sys/dev/mii/nsphy.c       Thu Jul 27 22:14:48 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nsphy.c,v 1.27 2000/07/04 03:28:59 thorpej Exp $       */
+/*     $NetBSD: nsphy.c,v 1.28 2000/07/27 22:14:48 martin Exp $        */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -207,14 +207,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