summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-06-26 04:27:20 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-06-26 04:27:20 +0000
commitd166209100d7ac3e390257e1089c6d9b54fea1f5 (patch)
tree86f9c66ba29f17df802b5d100a723b41d57c1246 /sys/dev
parentd4cf0f4b98753677dfb68e86de48c03238483833 (diff)
rev 1.29
hme_init(): call mii_mediachg() to make sure the current media is set. From NetBSD
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/hme.c5
1 files changed, 4 insertions, 1 deletions
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);