From owner-cvs-src@FreeBSD.ORG Tue Nov 28 05:22:24 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50C9C16A492; Tue, 28 Nov 2006 05:22:24 +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 59C7A442DD; Mon, 27 Nov 2006 23:37:20 +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 kARNc0oN002098; Mon, 27 Nov 2006 23:38:00 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kARNc0Vr002097; Mon, 27 Nov 2006 23:38:00 GMT (envelope-from marius) Message-Id: <200611272338.kARNc0Vr002097@repoman.freebsd.org> From: Marius Strobl Date: Mon, 27 Nov 2006 23:38:00 +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 mii_physubr.c miivar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 05:22:24 -0000 marius 2006-11-27 23:38:00 UTC FreeBSD src repository Modified files: sys/dev/mii mii_physubr.c miivar.h Log: - Add a MIIF_FORCEANEG flag which forces an auto-negotiation to always take place if IFM_AUTO is selected. This allows drivers like nsphy(4), which need to force writing the ANAR according to the BMSR, to take advantage of mii_phy_setmedia(). [1] - In mii_phy_reset() once the current media is set don't isolate the PHY corresponding to the instance of the currently selected media rather than unconditionally not isolating the PHY corresponding to instance 0. This saves a isolation-unisolation-cycle of the PHY corresponding to the currently selected media for the case were it isn't instance 0. - Fix some whitespace nits. [1] Obtained from: NetBSD [1] MFC after: 2 weeks Revision Changes Path 1.26 +10 -4 src/sys/dev/mii/mii_physubr.c 1.19 +1 -0 src/sys/dev/mii/miivar.h