diff options
author | marius <marius@FreeBSD.org> | 2010-11-22 21:20:11 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2010-11-22 21:20:11 +0000 |
commit | 21423fafa1358a2a95acebce88a346050821d69e (patch) | |
tree | f71a76eb5915349545b9b5d44916999d4e79f945 /sys/dev/mii | |
parent | 98a680088374acef603e1779ea228dd11e70ad7e (diff) | |
download | FreeBSD-src-21423fafa1358a2a95acebce88a346050821d69e.zip FreeBSD-src-21423fafa1358a2a95acebce88a346050821d69e.tar.gz |
Given that unlike f.e. rgephy(4) these drivers doen't explicitly start an
autonegotiation along with manual media selection and also only report 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')
-rw-r--r-- | sys/dev/mii/gentbi.c | 2 | ||||
-rw-r--r-- | sys/dev/mii/nsgphy.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/mii/gentbi.c b/sys/dev/mii/gentbi.c index f5d3a8b..a36f16a 100644 --- a/sys/dev/mii/gentbi.c +++ b/sys/dev/mii/gentbi.c @@ -172,6 +172,8 @@ gentbi_attach(device_t dev) sc->mii_service = gentbi_service; sc->mii_pdata = mii; + sc->mii_flags |= MIIF_NOMANPAUSE; + mii_phy_reset(sc); /* diff --git a/sys/dev/mii/nsgphy.c b/sys/dev/mii/nsgphy.c index 7cdee42..4177912 100644 --- a/sys/dev/mii/nsgphy.c +++ b/sys/dev/mii/nsgphy.c @@ -135,6 +135,8 @@ nsgphy_attach(device_t dev) sc->mii_service = nsgphy_service; sc->mii_pdata = mii; + sc->mii_flags |= MIIF_NOMANPAUSE; + mii_phy_reset(sc); /* |