diff options
author | yongari <yongari@FreeBSD.org> | 2008-10-25 06:39:17 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2008-10-25 06:39:17 +0000 |
commit | a2018f74979fdc3f1e52b56b83c0d057e65bb369 (patch) | |
tree | d2391b6b21de08603d8b92cd6c381bc3842b531e /sys | |
parent | 777488102519f10dea4e7b1b83e5916186693da8 (diff) | |
download | FreeBSD-src-a2018f74979fdc3f1e52b56b83c0d057e65bb369.zip FreeBSD-src-a2018f74979fdc3f1e52b56b83c0d057e65bb369.tar.gz |
Use auto-negotiation for manual media type selection. This fixes
establishment of 10/100Mbps link on Atheros AR8121(L1E).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/mii/atphy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/mii/atphy.c b/sys/dev/mii/atphy.c index c491e09..96243af 100644 --- a/sys/dev/mii/atphy.c +++ b/sys/dev/mii/atphy.c @@ -217,7 +217,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; |