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);
 
        /*
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to