Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic hme_init(): call mii_mediachg() to make sure the ...



details:   https://anonhg.NetBSD.org/src/rev/a1cb4556e4ee
branches:  trunk
changeset: 526516:a1cb4556e4ee
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun May 05 03:02:38 2002 +0000

description:
hme_init(): call mii_mediachg() to make sure the current media is set.

diffstat:

 sys/dev/ic/hme.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 37c9bb3838d2 -r a1cb4556e4ee sys/dev/ic/hme.c
--- a/sys/dev/ic/hme.c  Sun May 05 02:39:37 2002 +0000
+++ b/sys/dev/ic/hme.c  Sun May 05 03:02:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hme.c,v 1.28 2001/11/26 10:39:29 tron Exp $    */
+/*     $NetBSD: hme.c,v 1.29 2002/05/05 03:02:38 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.28 2001/11/26 10:39:29 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hme.c,v 1.29 2002/05/05 03:02:38 thorpej Exp $");
 
 #define HMEDEBUG
 
@@ -635,6 +635,9 @@
        if (sc->sc_hwinit)
                (*sc->sc_hwinit)(sc);
 
+       /* Set the current media. */
+       mii_mediachg(&sc->sc_mii);
+
        /* Start the one second timer. */
        callout_reset(&sc->sc_tick_ch, hz, hme_tick, sc);
 



Home | Main Index | Thread Index | Old Index