From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967409AbWLEFzg (ORCPT ); Tue, 5 Dec 2006 00:55:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S967623AbWLEFzf (ORCPT ); Tue, 5 Dec 2006 00:55:35 -0500 Received: from mail.windriver.com ([147.11.1.11]:47146 "EHLO mail.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967409AbWLEFze (ORCPT ); Tue, 5 Dec 2006 00:55:34 -0500 Subject: Re: [PATCH] Add Broadcom PHY support In-Reply-To: <1165266999.29784.20.camel@localhost.localdomain> To: Benjamin Herrenschmidt Date: Tue, 5 Dec 2006 00:55:16 -0500 (EST) CC: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jeff@garzik.org X-Mailer: ELM [version ME+ 2.5 PLalpha5] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Message-Id: From: Amy Fong X-OriginalArrivalTime: 05 Dec 2006 05:55:17.0577 (UTC) FILETIME=[F0CCDB90:01C71831] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > On Fri, 2006-09-15 at 16:15 -0400, Amy Fong wrote: > > [PATCH] Add Broadcom PHY support > > > > This patch adds a driver to support the bcm5421s and bcm5461s PHY > > > > Kernel version: linux-2.6.18-rc6 > > > > Signed-off-by: Amy Fong > > Some 5421's need special initialisation (see drivers/net/sungem_phy.c), > might be worth having them there too. I was also wondering... for > spidernet, we need to enable the fiber mode on the PHY. Does phylib has > an API for that ? > > I'd like to look into moving sungem and spidernet over to phylib. > > Ben. I believe that this fiber enabling can be done by defining config_init in the phy_driver struct. struct phy_driver { /* Called to initialize the PHY, * including after a reset */ int (*config_init)(struct phy_device *phydev); }; ie. static struct phy_driver bcm5421s_driver = { .config_init = bcm5421s_phy_config, }; int bcm5421s_phy_config(struct phy_device *phydev) { ... /* enable fiber mode here... */ ... } Amy