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 pullup 1.9->1.10 (thorpej): Fix PR7361



details:   https://anonhg.NetBSD.org/src/rev/a6a8e7a5bdba
branches:  netbsd-1-4
changeset: 468443:a6a8e7a5bdba
user:      perry <perry%NetBSD.org@localhost>
date:      Fri Apr 23 15:41:43 1999 +0000

description:
pullup 1.9->1.10 (thorpej): Fix PR7361

diffstat:

 sys/dev/mii/lxtphy.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 24fd2a743082 -r a6a8e7a5bdba sys/dev/mii/lxtphy.c
--- a/sys/dev/mii/lxtphy.c      Fri Apr 23 15:40:56 1999 +0000
+++ b/sys/dev/mii/lxtphy.c      Fri Apr 23 15:41:43 1999 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: lxtphy.c,v 1.9 1998/11/05 04:08:02 thorpej Exp $       */
+/*     $NetBSD: lxtphy.c,v 1.9.6.1 1999/04/23 15:41:43 perry Exp $     */
 
 /*-
- * Copyright (c) 1998 The NetBSD Foundation, Inc.
+ * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
@@ -77,6 +77,7 @@
 #include <sys/device.h>
 #include <sys/malloc.h>
 #include <sys/socket.h>
+#include <sys/errno.h>
 
 #include <net/if.h>
 #include <net/if_media.h>
@@ -192,7 +193,7 @@
                         */
                        if (PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN)
                                return (0);
-                       (void) mii_phy_auto(sc);
+                       (void) mii_phy_auto(sc, 1);
                        break;
                case IFM_100_T4:
                        /*
@@ -247,7 +248,8 @@
 
                sc->mii_ticks = 0;
                mii_phy_reset(sc);
-               (void) mii_phy_auto(sc);
+               if (mii_phy_auto(sc, 0) == EJUSTRETURN)
+                       return (0);
                break;
        }
 



Home | Main Index | Thread Index | Old Index