From e8757e8b1e95f52354d58f8eab92007e3e306f4b Mon Sep 17 00:00:00 2001 From: marius Date: Sat, 29 May 2004 18:29:53 +0000 Subject: In hme_init() call mii_mediachg() to make sure the current media is set. This is part 2/2 of fixing autonegotiation on hme(4) using DP83840A PHYs. It appears to also fix the occasional problems to establish a link on hme(4) using LU6612 PHYs and shouldn't hurt on those using QS6612 PHYs. Obtained from: NetBSD --- sys/dev/hme/if_hme.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/hme') diff --git a/sys/dev/hme/if_hme.c b/sys/dev/hme/if_hme.c index e2c22fa..256b513 100644 --- a/sys/dev/hme/if_hme.c +++ b/sys/dev/hme/if_hme.c @@ -34,7 +34,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * from: NetBSD: hme.c,v 1.20 2000/12/14 06:27:25 thorpej Exp + * from: NetBSD: hme.c,v 1.29 2002/05/05 03:02:38 thorpej Exp */ #include @@ -817,6 +817,9 @@ hme_init(void *xsc) HME_MAC_READ_4(sc, HME_MACI_TXCFG)); #endif + /* Set the current media. */ + mii_mediachg(sc->sc_mii); + /* Start the one second timer. */ callout_reset(&sc->sc_tick_ch, hz, hme_tick, sc); -- cgit v1.1