From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH 1/12]: sungem_phy: support bcm5461 phy, autoneg. Date: Tue, 27 Feb 2007 04:16:35 -0500 Message-ID: <45E3F6F3.7010909@garzik.org> References: <20070220221314.GU923@austin.ibm.com> <20070220223050.GA28895@austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Benjamin Herrenschmidt , kou.ishizaki@toshiba.co.jp, arnd@arndb.de, Jens Osterkamp , netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Linas Vepstas Return-path: Received: from srv5.dvmed.net ([207.36.208.214]:47387 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161075AbXB0JQy (ORCPT ); Tue, 27 Feb 2007 04:16:54 -0500 In-Reply-To: <20070220223050.GA28895@austin.ibm.com> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Linas Vepstas wrote: > From: Jens Osterkamp > > This version moves the medium variable to the card specific structure and > changes the GMII_* to BCM54XX_* #defines. > > This patch adds improved version of enable_fiber for both the 5421 and > the 5461 phy. It is now possible to specify with these wether you want > autonegotiation or not. This is needed for bladecenter switches where > some expect autonegotiation and some dont seem to like this at all. > Depending on this flag it sets phy->autoneg accordingly for the fiber mode. > > More importantly it implements proper read_link and poll_link functions > for both phys which can handle both copper and fiber mode by determining > the medium first and then branching to the required functions. For fiber > they all work fine, for copper they are not tested but return the result > of the genmii_* function anyway which is supposed to work. > > The patch moves the genmii_* functions around to avoid foreward declarations. > > Signed-off-by: Jens Osterkamp > Signed-off-by: Arnd Bergmann > Signed-off-by: Linas Vepstas > > ---- > drivers/net/sungem_phy.c | 389 ++++++++++++++++++++++++++++++----------------- > drivers/net/sungem_phy.h | 10 + > 2 files changed, 263 insertions(+), 136 deletions(-) applied 1-12