diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-09-14 22:39:04 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-09-14 22:39:04 +0000 |
commit | 05921119d5c75ef8cfcc6703e458b03739890c40 (patch) | |
tree | 405adf76c4729cc8829f336f79143facdaa85932 /sys/dev/pci | |
parent | 42e8bc08ea68842ad185d74883a71ac1cf0b1433 (diff) |
Call tl_ifmedia_upd() in tl_init() for cards with bitrate devices
From FreeBSD
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_tl.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pci/if_tl.c b/sys/dev/pci/if_tl.c index dee8cceb9c2..8b05c8dfd88 100644 --- a/sys/dev/pci/if_tl.c +++ b/sys/dev/pci/if_tl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_tl.c,v 1.31 2003/08/19 14:01:35 mpech Exp $ */ +/* $OpenBSD: if_tl.c,v 1.32 2004/09/14 22:39:03 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1702,8 +1702,11 @@ void tl_init(xsc) CMD_SET(sc, TL_CMD_RT); CSR_WRITE_4(sc, TL_CH_PARM, vtophys(&sc->tl_ldata->tl_rx_list[0])); - if (!sc->tl_bitrate) + if (!sc->tl_bitrate) { mii_mediachg(&sc->sc_mii); + } else { + tl_ifmedia_upd(ifp); + } /* Send the RX go command */ CMD_SET(sc, TL_CMD_GO|TL_CMD_NES|TL_CMD_RT); |