svn commit: r199924 - stable/8/sys/dev/alc

Pyun YongHyeon yongari at FreeBSD.org
Sun Nov 29 19:25:15 UTC 2009


Author: yongari
Date: Sun Nov 29 19:25:15 2009
New Revision: 199924
URL: http://svn.freebsd.org/changeset/base/199924

Log:
  MFC 197600.
    For AR8132 fast ethernet controller, do not report 1000baseT
    capability to mii(4). Even though AR8132 uses the same model/
    revision number of F1 gigabit PHY, the PHY has no ability to
    establish 1000baseT link. I have no idea why Atheros use the same
    device/model id for this PHY.
    With this change atphy(4) does not report 1000baseT media
    capability and manual 1000baseT configuration is also disabled
    which is more desirable behavior for 10/100Mbps PHY.

Modified:
  stable/8/sys/dev/alc/if_alc.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/alc/if_alc.c
==============================================================================
--- stable/8/sys/dev/alc/if_alc.c	Sun Nov 29 19:23:25 2009	(r199923)
+++ stable/8/sys/dev/alc/if_alc.c	Sun Nov 29 19:25:15 2009	(r199924)
@@ -234,6 +234,16 @@ alc_miibus_readreg(device_t dev, int phy
 	if (phy != sc->alc_phyaddr)
 		return (0);
 
+	/*
+	 * For AR8132 fast ethernet controller, do not report 1000baseT
+	 * capability to mii(4). Even though AR8132 uses the same
+	 * model/revision number of F1 gigabit PHY, the PHY has no
+	 * ability to establish 1000baseT link.
+	 */
+	if ((sc->alc_flags & ALC_FLAG_FASTETHER) != 0 &&
+	    reg == MII_EXTSR)
+		return (0);
+
 	CSR_WRITE_4(sc, ALC_MDIO, MDIO_OP_EXECUTE | MDIO_OP_READ |
 	    MDIO_SUP_PREAMBLE | MDIO_CLK_25_4 | MDIO_REG_ADDR(reg));
 	for (i = ALC_PHY_TIMEOUT; i > 0; i--) {


More information about the svn-src-stable mailing list