Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755826AbXLQXVa (ORCPT ); Mon, 17 Dec 2007 18:21:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1763056AbXLQXUY (ORCPT ); Mon, 17 Dec 2007 18:20:24 -0500 Received: from srv5.dvmed.net ([207.36.208.214]:48974 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754234AbXLQXUV (ORCPT ); Mon, 17 Dec 2007 18:20:21 -0500 Message-ID: <4767042E.2070903@garzik.org> Date: Mon, 17 Dec 2007 18:20:14 -0500 From: Jeff Garzik User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Jochen Friedrich CC: Vitaly Bordug , linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Scott Wood Subject: Re: [PATCH/RFC] [POWERPC] Add fixed-phy support for fs_enet References: <47601027.2080104@scram.de> In-Reply-To: <47601027.2080104@scram.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) X-Spam-Report: SpamAssassin version 3.1.9 on srv5.dvmed.net summary: Content analysis details: (-4.4 points, 5.0 required) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1296 Lines: 38 Jochen Friedrich wrote: > This patch adds support to use the fixed-link property > of an ethernet node to fs_enet for the > CONFIG_PPC_CPM_NEW_BINDING case. > > Signed-off-by: Jochen Friedrich > --- > drivers/net/fs_enet/fs_enet-main.c | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) > > diff --git a/drivers/net/fs_enet/fs_enet-main.c b/drivers/net/fs_enet/fs_enet-main.c > index f2a4d39..8220c70 100644 > --- a/drivers/net/fs_enet/fs_enet-main.c > +++ b/drivers/net/fs_enet/fs_enet-main.c > @@ -1174,8 +1174,15 @@ static int __devinit find_phy(struct device_node *np, > struct device_node *phynode, *mdionode; > struct resource res; > int ret = 0, len; > + const u32 *data; > + > + data = of_get_property(np, "fixed-link", NULL); > + if (data) { > + snprintf(fpi->bus_id, 16, PHY_ID_FMT, 0, *data); > + return 0; > + } > > - const u32 *data = of_get_property(np, "phy-handle", &len); > + data = of_get_property(np, "phy-handle", &len); > if (!data || len != 4) ACK, pass this through paulus? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/