From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752570AbbJQGxN (ORCPT ); Sat, 17 Oct 2015 02:53:13 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:32998 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbbJQGxM (ORCPT ); Sat, 17 Oct 2015 02:53:12 -0400 Date: Fri, 16 Oct 2015 23:53:04 -0700 From: Greg Kroah-Hartman To: Tomeu Vizoso Cc: linux-kernel@vger.kernel.org, Rob Herring , Stephen Warren , Javier Martinez Canillas , Mark Brown , Thierry Reding , Alan Stern , "Rafael J. Wysocki" , linux-arm-kernel@lists.infradead.org, Dmitry Torokhov , devicetree@vger.kernel.org, Russell King , Linus Walleij , Ulf Hansson , linux-acpi@vger.kernel.org, Arnd Bergmann Subject: Re: [PATCH v7 04/20] of: add function to allow probing a device from a OF node Message-ID: <20151017065304.GB18329@kroah.com> References: <1443517859-30376-1-git-send-email-tomeu.vizoso@collabora.com> <1443517859-30376-5-git-send-email-tomeu.vizoso@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443517859-30376-5-git-send-email-tomeu.vizoso@collabora.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2015 at 11:10:42AM +0200, Tomeu Vizoso wrote: > Walks the OF tree up and finds the closest ancestor that has a struct > device associated with it, probing it if isn't bound to a driver yet. > > The above should ensure that the dependency represented by the passed OF > node is available, because probing a device should cause its descendants > to be probed as well (when they get registered). > > Subsystems can use this when looking up resources for drivers, to reduce > the chances of deferred probes because of the probing order of devices. How do subsystems know to do this? Under what situation? Why is this a of-only type thing? Why don't other busses need this? I don't like to special-case a single bus like this at all if possible... thanks, greg k-h