diff options
author | Kevin Lo <kevlo@cvs.openbsd.org> | 2009-03-23 05:26:48 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@cvs.openbsd.org> | 2009-03-23 05:26:48 +0000 |
commit | 25608a36e519b4b3295c26276e1127b561db22fb (patch) | |
tree | 91fdaa6a946ecb533377f7f741c6ae516bf3d52e /sys/dev/mii | |
parent | cc1bbefcf901fc5b823b85a48d8870b1b2bd510e (diff) |
use auto-negotiation for manual media type selection. This fixes
establishment of 10/100Mbps link on ale(4).
From FreeBSD
Diffstat (limited to 'sys/dev/mii')
-rw-r--r-- | sys/dev/mii/atphy.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <yongari@FreeBSD.org> @@ -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; |