diff options
author | Yojiro Uo <yuo@cvs.openbsd.org> | 2015-07-19 04:59:40 +0000 |
---|---|---|
committer | Yojiro Uo <yuo@cvs.openbsd.org> | 2015-07-19 04:59:40 +0000 |
commit | 00932d4abf5eaed8a4bd51eab558f221c0b66fa9 (patch) | |
tree | 698d3bb99a4faaf3cf13b387b32ba9f0d3dd5217 | |
parent | 5d37ebcefd38cd8d707b2c9c80586d239362e361 (diff) |
according to MII specification, these seems to be bug.
ok deraadt@
-rw-r--r-- | sys/dev/mii/ipgphy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/mii/ipgphy.c b/sys/dev/mii/ipgphy.c index 030ace456dc..5111ed1180d 100644 --- a/sys/dev/mii/ipgphy.c +++ b/sys/dev/mii/ipgphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipgphy.c,v 1.16 2013/12/28 03:30:41 deraadt Exp $ */ +/* $OpenBSD: ipgphy.c,v 1.17 2015/07/19 04:59:39 yuo Exp $ */ /*- * Copyright (c) 2006, Pyun YongHyeon <yongari@FreeBSD.org> @@ -204,7 +204,7 @@ ipgphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) PHY_WRITE(sc, IPGPHY_MII_BMCR, speed); if (mii->mii_media.ifm_media & IFM_ETH_MASTER) - gig |= IPGPHY_1000CR_MASTER | IPGPHY_1000CR_MANUAL; + gig |= IPGPHY_1000CR_MMASTER | IPGPHY_1000CR_MANUAL; PHY_WRITE(sc, IPGPHY_MII_1000CR, gig); @@ -342,7 +342,7 @@ ipgphy_status(struct mii_softc *sc) if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) { if (PHY_READ(sc, IPGPHY_MII_1000SR) & - IPGPHY_1000SR_MASTER) + IPGPHY_1000SR_MMASTER) mii->mii_media_active |= IFM_ETH_MASTER; } } else |