From 25608a36e519b4b3295c26276e1127b561db22fb Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Mon, 23 Mar 2009 05:26:48 +0000 Subject: use auto-negotiation for manual media type selection. This fixes establishment of 10/100Mbps link on ale(4). From FreeBSD --- sys/dev/mii/atphy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/mii') diff --git a/sys/dev/mii/atphy.c b/sys/dev/mii/atphy.c index 18563136587..efbf912c3d2 100644 --- a/sys/dev/mii/atphy.c +++ b/sys/dev/mii/atphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atphy.c,v 1.1 2008/09/25 20:47:16 brad Exp $ */ +/* $OpenBSD: atphy.c,v 1.2 2009/03/23 05:26:47 kevlo Exp $ */ /*- * Copyright (c) 2008, Pyun YongHyeon @@ -213,7 +213,8 @@ atphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) /* * Reset the PHY so all changes take effect. */ - PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_RESET); + PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_RESET | BMCR_AUTOEN | + BMCR_STARTNEG); done: break; -- cgit v1.2.3