From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754931AbbJVAew (ORCPT ); Wed, 21 Oct 2015 20:34:52 -0400 Received: from ozlabs.org ([103.22.144.67]:39012 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbbJVAeu (ORCPT ); Wed, 21 Oct 2015 20:34:50 -0400 Message-ID: <1445474088.30295.5.camel@ellerman.id.au> Subject: Re: [PATCH v6 22/22] of/platform: Defer probes of registered devices From: Michael Ellerman To: Scott Wood , Tomeu Vizoso Cc: devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, Arnd Bergmann , Stephen Warren , Greg Kroah-Hartman , Linus Walleij , Dmitry Torokhov , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Rob Herring , Javier Martinez Canillas , Mark Brown , Thierry Reding , Alan Stern , Hu Mingkai-B21284 , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Date: Thu, 22 Oct 2015 11:34:48 +1100 In-Reply-To: <1445406845.701.55.camel@freescale.com> References: <1442844182-27787-1-git-send-email-tomeu.vizoso@collabora.com> <1442844182-27787-23-git-send-email-tomeu.vizoso@collabora.com> <1445406845.701.55.camel@freescale.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5-1ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2015-10-21 at 00:54 -0500, Scott Wood wrote: > On Mon, 2015-09-21 at 16:03 +0200, Tomeu Vizoso wrote: > > Instead of trying to match and probe platform and AMBA devices right > > after each is registered, delay their probes until device_initcall_sync. > > > > This means that devices will start probing once all built-in drivers > > have registered, and after all platform and AMBA devices from the DT > > have been registered already. > > > > This allows us to prevent deferred probes by probing dependencies on > > demand. > > > > Signed-off-by: Tomeu Vizoso > > --- > > > > Changes in v4: > > - Also defer probes of AMBA devices registered from the DT as they can > > also request resources. > > > > drivers/of/platform.c | 11 ++++++++--- > > 1 file changed, 8 insertions(+), 3 deletions(-) > > This breaks arch/powerpc/sysdev/fsl_pci.c. The PCI bus is an OF platform > device, and it must be probed before pcibios_init() which is a > subsys_initcall(), or else the PCI bus never gets scanned. Ah right. This is presumably why I'm not seeing any PCI devices on my p5020ds with linux-next. cheers