From c5f46dc8fdf5df511c64ff561ea417acd5144e8a Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 24 May 2008 08:56:17 +0000 Subject: Configure the media when brining up an interface. --- sys/arch/socppc/dev/if_tsec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/arch') 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; -- cgit v1.2.3