From owner-svn-src-all@FreeBSD.ORG Thu Apr 22 01:45:18 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61272106566B; Thu, 22 Apr 2010 01:45:18 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 505228FC1C; Thu, 22 Apr 2010 01:45:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o3M1jIB1031656; Thu, 22 Apr 2010 01:45:18 GMT (envelope-from yongari@svn.freebsd.org) Received: (from yongari@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o3M1jIFu031653; Thu, 22 Apr 2010 01:45:18 GMT (envelope-from yongari@svn.freebsd.org) Message-Id: <201004220145.o3M1jIFu031653@svn.freebsd.org> From: Pyun YongHyeon Date: Thu, 22 Apr 2010 01:45:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r207047 - stable/7/sys/dev/mii X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2010 01:45:18 -0000 Author: yongari Date: Thu Apr 22 01:45:18 2010 New Revision: 207047 URL: http://svn.freebsd.org/changeset/base/207047 Log: MFC r206563: Add Agere ET1011 PHY which is found on Belkin F5D5055 USB controller. Unlike Agere ET1011C, Agere ET1011 does not seem to need special DSP programming to workaround silicon bug. Modified: stable/7/sys/dev/mii/miidevs stable/7/sys/dev/mii/truephy.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/dev/mii/miidevs ============================================================================== --- stable/7/sys/dev/mii/miidevs Thu Apr 22 01:39:45 2010 (r207046) +++ stable/7/sys/dev/mii/miidevs Thu Apr 22 01:45:18 2010 (r207047) @@ -107,6 +107,7 @@ oui xxREALTEK 0x000732 */ /* Agere Systems PHYs */ +model AGERE ET1011 0x0001 ET1011 10/100/1000baseT PHY model AGERE ET1011C 0x0004 ET1011C 10/100/1000baseT PHY /* Altima Communications PHYs */ Modified: stable/7/sys/dev/mii/truephy.c ============================================================================== --- stable/7/sys/dev/mii/truephy.c Thu Apr 22 01:39:45 2010 (r207046) +++ stable/7/sys/dev/mii/truephy.c Thu Apr 22 01:45:18 2010 (r207047) @@ -75,6 +75,7 @@ static device_method_t truephy_methods[] }; static const struct mii_phydesc truephys[] = { + MII_PHY_DESC(AGERE, ET1011), MII_PHY_DESC(AGERE, ET1011C), MII_PHY_END }; @@ -160,7 +161,10 @@ truephy_attach(device_t dev) mii->mii_instance++; - truephy_reset(sc); + if (MII_MODEL(ma->mii_id2) == MII_MODEL_AGERE_ET1011) + mii_phy_reset(sc); + else + truephy_reset(sc); sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask; if (sc->mii_capabilities & BMSR_EXTSTAT) {