Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758208Ab2EHDBA (ORCPT ); Mon, 7 May 2012 23:01:00 -0400 Received: from shards.monkeyblade.net ([198.137.202.13]:53846 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758167Ab2EHDA6 (ORCPT ); Mon, 7 May 2012 23:00:58 -0400 Date: Mon, 07 May 2012 22:58:42 -0400 (EDT) Message-Id: <20120507.225842.692131427998127266.davem@davemloft.net> To: ddaney.cavm@gmail.com Cc: ralf@linux-mips.org, grant.likely@secretlab.ca, rob.herring@calxeda.com, devicetree-discuss@lists.ozlabs.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, afleming@gmail.com, galak@kernel.crashing.org, david.daney@cavium.com Subject: Re: [PATCH v6 1/3] netdev/of/phy: New function: of_mdio_find_bus(). From: David Miller In-Reply-To: <1336007799-31016-2-git-send-email-ddaney.cavm@gmail.com> References: <1336007799-31016-1-git-send-email-ddaney.cavm@gmail.com> <1336007799-31016-2-git-send-email-ddaney.cavm@gmail.com> X-Mailer: Mew version 6.5 on Emacs 24.0.95 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (shards.monkeyblade.net [198.137.202.13]); Mon, 07 May 2012 19:58:45 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1009 Lines: 27 From: David Daney Date: Wed, 2 May 2012 18:16:37 -0700 > From: David Daney > > Add of_mdio_find_bus() which allows an mii_bus to be located given its > associated the device tree node. > > This is needed by the follow-on patch to add a driver for MDIO bus > multiplexers. > > The of_mdiobus_register() function is modified so that the device tree > node is recorded in the mii_bus. Then we can find it again by > iterating over all mdio_bus_class devices. > > Because the OF device tree has now become an integral part of the > kernel, this can live in mdio_bus.c (which contains the needed > mdio_bus_class structure) instead of of_mdio.c. > > Signed-off-by: David Daney Applied. -- 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/