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.1->1.2 (thorpej): Fix PR7361



details:   https://anonhg.NetBSD.org/src/rev/80f600c5739b
branches:  netbsd-1-4
changeset: 468435:80f600c5739b
user:      perry <perry%NetBSD.org@localhost>
date:      Fri Apr 23 15:39:00 1999 +0000

description:
pullup 1.1->1.2 (thorpej): Fix PR7361

diffstat:

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

diffs (40 lines):

diff -r d845b9838c27 -r 80f600c5739b sys/dev/mii/ukphy.c
--- a/sys/dev/mii/ukphy.c       Fri Apr 23 15:29:29 1999 +0000
+++ b/sys/dev/mii/ukphy.c       Fri Apr 23 15:39:00 1999 +0000
@@ -1,7 +1,7 @@
-/*     $NetBSD: ukphy.c,v 1.1 1998/11/05 00:36:48 thorpej Exp $        */
+/*     $NetBSD: ukphy.c,v 1.1.6.1 1999/04/23 15:39:00 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
@@ -76,6 +76,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>
@@ -189,7 +190,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:
                        /*
@@ -243,7 +244,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