From 9a88d576c11df9380ad4829731d4de9ce1ea7bd4 Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 5 May 2002 03:02:38 +0000 Subject: [PATCH] hme_init(): call mii_mediachg() to make sure the current media is set. --- sys/dev/ic/hme.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index e55090afd4f4..f26522a6caca 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -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 -__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 @@ hme_init(sc) 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);