Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Ops, forgot to commit this one:



details:   https://anonhg.NetBSD.org/src/rev/93d0e5f3c4c0
branches:  trunk
changeset: 513574:93d0e5f3c4c0
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sat Aug 04 02:21:24 2001 +0000

description:
Ops, forgot to commit this one:
- kill carrier detection code, it's not that usefull and give false indications
  on loaded ethernet segments

diffstat:

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

diffs (27 lines):

diff -r f2fb1f468495 -r 93d0e5f3c4c0 sys/dev/mii/tlphy.c
--- a/sys/dev/mii/tlphy.c       Sat Aug 04 00:54:30 2001 +0000
+++ b/sys/dev/mii/tlphy.c       Sat Aug 04 02:21:24 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tlphy.c,v 1.30 2001/06/02 21:39:41 thorpej Exp $       */
+/*     $NetBSD: tlphy.c,v 1.31 2001/08/04 02:21:24 bouyer Exp $        */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -316,7 +316,6 @@
 {
        struct tlphy_softc *sc = (void *) physc;
        struct mii_data *mii = sc->sc_mii.mii_pdata;
-       struct tl_softc *tlsc = (struct tl_softc *)sc->sc_mii.mii_dev.dv_parent;
        int bmsr, bmcr, tlctrl;
 
        mii->mii_media_status = IFM_AVALID;
@@ -338,8 +337,7 @@
                else
                        printf("%s: AUI selected with no matching media !\n",
                            sc->sc_mii.mii_dev.dv_xname);
-               if (tlsc->tl_flags & TL_IFACT)
-                       mii->mii_media_status |= IFM_ACTIVE;
+               mii->mii_media_status |= IFM_ACTIVE;
                return;
        }
 



Home | Main Index | Thread Index | Old Index