Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2010 21:20:11 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215714 - head/sys/dev/mii
Message-ID:  <201011222120.oAMLKBRX006292@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011222120.oAMLKBRX006292>