summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/atphy.c
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2008-10-25 06:39:17 +0000
committeryongari <yongari@FreeBSD.org>2008-10-25 06:39:17 +0000
commita2018f74979fdc3f1e52b56b83c0d057e65bb369 (patch)
treed2391b6b21de08603d8b92cd6c381bc3842b531e /sys/dev/mii/atphy.c
parent777488102519f10dea4e7b1b83e5916186693da8 (diff)
downloadFreeBSD-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/dev/mii/atphy.c')
-rw-r--r--sys/dev/mii/atphy.c3
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;
OpenPOWER on IntegriCloud