summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-05-24 08:56:17 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-05-24 08:56:17 +0000
commitc5f46dc8fdf5df511c64ff561ea417acd5144e8a (patch)
treeacd3bd849c784a76cf9dfcf8d70955d099fcd8f5 /sys/arch
parent79659745fec9647b2c8f3ef2c381f6d2bcdda42e (diff)
Configure the media when brining up an interface.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/socppc/dev/if_tsec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/socppc/dev/if_tsec.c b/sys/arch/socppc/dev/if_tsec.c
index 99c6029edb3..2c28b4a2153 100644
--- a/sys/arch/socppc/dev/if_tsec.c
+++ b/sys/arch/socppc/dev/if_tsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tsec.c,v 1.1 2008/05/19 19:56:44 kettenis Exp $ */
+/* $OpenBSD: if_tsec.c,v 1.2 2008/05/24 08:56:16 kettenis Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
@@ -888,6 +888,9 @@ tsec_up(struct tsec_softc *sc)
tsec_write(sc, TSEC_TSTAT, TSEC_TSTAT_THLT);
tsec_write(sc, TSEC_RSTAT, TSEC_RSTAT_QHLT);
+ /* Configure media. */
+ mii_mediachg(&sc->sc_mii);
+
ifp->if_flags |= IFF_RUNNING;
ifp->if_flags &= ~IFF_OACTIVE;