From d166209100d7ac3e390257e1089c6d9b54fea1f5 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 26 Jun 2005 04:27:20 +0000 Subject: rev 1.29 hme_init(): call mii_mediachg() to make sure the current media is set. From NetBSD --- sys/dev/ic/hme.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/hme.c b/sys/dev/ic/hme.c index d4635e23642..6253bbf39da 100644 --- a/sys/dev/ic/hme.c +++ b/sys/dev/ic/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.37 2005/06/08 04:14:25 brad Exp $ */ +/* $OpenBSD: hme.c,v 1.38 2005/06/26 04:27:19 brad Exp $ */ /* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */ /*- @@ -621,6 +621,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. */ timeout_add(&sc->sc_tick_ch, hz); -- cgit v1.2.3