hme_init(): call mii_mediachg() to make sure the current media is set.
This commit is contained in:
parent
1556ff869b
commit
9a88d576c1
|
@ -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 <sys/cdefs.h>
|
||||
__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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue