svn commit: r215713 - head/sys/dev/mii
Marius Strobl
marius at FreeBSD.org
Mon Nov 22 21:13:42 UTC 2010
Author: marius
Date: Mon Nov 22 21:13:42 2010
New Revision: 215713
URL: http://svn.freebsd.org/changeset/base/215713
Log:
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.
Modified:
head/sys/dev/mii/ukphy.c
Modified: head/sys/dev/mii/ukphy.c
==============================================================================
--- head/sys/dev/mii/ukphy.c Mon Nov 22 21:12:20 2010 (r215712)
+++ head/sys/dev/mii/ukphy.c Mon Nov 22 21:13:42 2010 (r215713)
@@ -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;
More information about the svn-src-head
mailing list