From owner-cvs-all@FreeBSD.ORG Tue Nov 28 05:37:42 2006 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2434F16A78A; Tue, 28 Nov 2006 05:37:42 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3FE04464E; Tue, 28 Nov 2006 04:45:10 +0000 (GMT) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAS1EAbL028338; Tue, 28 Nov 2006 01:14:10 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAS1EA5f028337; Tue, 28 Nov 2006 01:14:10 GMT (envelope-from marius) Message-Id: <200611280114.kAS1EA5f028337@repoman.freebsd.org> From: Marius Strobl Date: Tue, 28 Nov 2006 01:14:10 +0000 (UTC) To: src-committers@freebsd.org, cvs-src@freebsd.org, cvs-all@freebsd.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/mii rlphy.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 05:37:42 -0000 marius 2006-11-28 01:14:10 UTC FreeBSD src repository Modified files: sys/dev/mii rlphy.c Log: - In rlphy_service() for the MII_TICK case don't bother to check whether the currently selected media is of type IFM_AUTO as auto-negotiation doesn't need to be kicked anyway. - In rlphy_status() just use if_dname instead of determining the name of the parent NIC via device_get_name(device_get_parent(sc->mii_dev)). - Use mii_phy_add_media() instead of mii_add_media() so the latter can be eventually retired. - Take advantage of mii_phy_setmedia(). - Fix some whitespace nits and remove commented out code that just can't be used with RealTek PHYs. MFC after: 2 weeks Revision Changes Path 1.24 +10 -45 src/sys/dev/mii/rlphy.c