Remove mii_mediachg() call from re_init().

It causes a few second TRX stalls on each ioctls
(on ifconfig(8) or tcpdump(8) etc.) and PHY seems
initialized properly without it at least on RTL8169S
with internal rgephy(4) PHY. Closes PR kern/34517.

XXX: maybe we should also test this on the original RTL8169
     with external makphy(4).
This commit is contained in:
tsutsui 2006-11-29 14:13:15 +00:00
parent 92dc7b0c2c
commit 29fb2fb408
1 changed files with 1 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtl8169.c,v 1.71 2006/11/25 02:42:18 tsutsui Exp $ */
/* $NetBSD: rtl8169.c,v 1.72 2006/11/29 14:13:15 tsutsui Exp $ */
/*
* Copyright (c) 1997, 1998-2003
@ -1955,8 +1955,6 @@ re_init(struct ifnet *ifp)
if (sc->re_testmode)
return 0;
mii_mediachg(&sc->mii);
CSR_WRITE_1(sc, RTK_CFG1, RTK_CFG1_DRVLOAD | RTK_CFG1_FULLDUPLEX);
ifp->if_flags |= IFF_RUNNING;