svn commit: r215714 - head/sys/dev/mii

Marius Strobl marius at FreeBSD.org
Mon Nov 22 21:20:12 UTC 2010


Author: marius
Date: Mon Nov 22 21:20:11 2010
New Revision: 215714
URL: http://svn.freebsd.org/changeset/base/215714

Log:
  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.

Modified:
  head/sys/dev/mii/gentbi.c
  head/sys/dev/mii/nsgphy.c

Modified: head/sys/dev/mii/gentbi.c
==============================================================================
--- head/sys/dev/mii/gentbi.c	Mon Nov 22 21:13:42 2010	(r215713)
+++ head/sys/dev/mii/gentbi.c	Mon Nov 22 21:20:11 2010	(r215714)
@@ -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);
 
 	/*

Modified: head/sys/dev/mii/nsgphy.c
==============================================================================
--- head/sys/dev/mii/nsgphy.c	Mon Nov 22 21:13:42 2010	(r215713)
+++ head/sys/dev/mii/nsgphy.c	Mon Nov 22 21:20:11 2010	(r215714)
@@ -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);
 
 	/*


More information about the svn-src-head mailing list