summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/ukphy.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-11-22 21:13:42 +0000
committermarius <marius@FreeBSD.org>2010-11-22 21:13:42 +0000
commit98a680088374acef603e1779ea228dd11e70ad7e (patch)
tree86c037d086ab58f3d0be9acd0f41d1eb68ea5a52 /sys/dev/mii/ukphy.c
parent7b665e6d2eac14159fb2ecac231ed71112f902e6 (diff)
downloadFreeBSD-src-98a680088374acef603e1779ea228dd11e70ad7e.zip
FreeBSD-src-98a680088374acef603e1779ea228dd11e70ad7e.tar.gz
Given that unlike f.e. rgephy(4) this driver doesn't explicitly start an
autonegotiation along with manual media selection and ukphy_status() also only reports flow control status when BMCR_AUTOEN is set (at least with gentbi(4) determining the flow control status results in false-positives when not set), use MIIF_NOMANPAUSE.
Diffstat (limited to 'sys/dev/mii/ukphy.c')
-rw-r--r--sys/dev/mii/ukphy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/mii/ukphy.c b/sys/dev/mii/ukphy.c
index 05b1b45..10842b7 100644
--- a/sys/dev/mii/ukphy.c
+++ b/sys/dev/mii/ukphy.c
@@ -136,6 +136,8 @@ ukphy_attach(device_t dev)
sc->mii_service = ukphy_service;
sc->mii_pdata = mii;
+ sc->mii_flags |= MIIF_NOMANPAUSE;
+
mii_phy_reset(sc);
sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask;
OpenPOWER on IntegriCloud