From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 11BE8DE15A for ; Thu, 16 Apr 2009 09:02:24 +1000 (EST) Message-Id: From: Andy Fleming To: Grant Likely In-Reply-To: <20090331082730.1427.96418.stgit@localhost.localdomain> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [PATCH 09/14] net: Rework gianfar driver to use of_mdio infrastructure. Date: Wed, 15 Apr 2009 18:01:17 -0500 References: <20090331075537.1427.7819.stgit@localhost.localdomain> <20090331082730.1427.96418.stgit@localhost.localdomain> Cc: Joakim Tjernlund , netdev@vger.kernel.org, linuxppc-dev@ozlabs.org, olof@lixom.net List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mar 31, 2009, at 3:27 AM, Grant Likely wrote: > From: Grant Likely > > This patch simplifies the driver by making use of more common code. > > Signed-off-by: Grant Likely > --- > > drivers/net/gianfar.c | 103 +++++++++++++++++ > +------------------------------- > drivers/net/gianfar.h | 3 + > 2 files changed, 40 insertions(+), 66 deletions(-) > > > diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c > index 65f5587..c22eba9 100644 > @@ -699,23 +657,38 @@ static int init_phy(struct net_device *dev) > > > + if (priv->tbi_node) { > + priv->tbiphy = of_phy_connect(dev, priv->tbi_node, &adjust_link, > + 0, interface); > + if (!priv->tbiphy) { > + dev_err(&dev->dev, "error: Could not attach to TBI\n"); > + goto err_tbiphy; > + } > + } I don't believe we need this. Certainly, the current code doesn't do anything like this. The TBI node is a special internal PHY used to manage SGMII/TBI links. Andy