From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from caramon.arm.linux.org.uk ([78.32.30.218]:56234 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753197Ab2IHAFv (ORCPT ); Fri, 7 Sep 2012 20:05:51 -0400 Date: Sat, 8 Sep 2012 01:04:30 +0100 From: Russell King - ARM Linux To: Stephen Warren Cc: Bjorn Helgaas , Thierry Reding , linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org, Grant Likely , Rob Herring , devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Colin Cross , Olof Johansson , Mitch Bradley , Arnd Bergmann Subject: Re: [PATCH v3 00/10] ARM: tegra: Add PCIe device tree support Message-ID: <20120908000430.GF13739@n2100.arm.linux.org.uk> References: <50201E1D.5060200@wwwdotorg.org> <20120813174003.GA2527@avionic-0098.mockup.avionic-design.de> <50294BCA.1070807@wwwdotorg.org> <502AA96B.2050709@wwwdotorg.org> <20120814195834.GA10431@avionic-0098.mockup.avionic-design.de> <502AD82F.3080702@wwwdotorg.org> <502AE485.8060307@wwwdotorg.org> <504A848B.1090703@wwwdotorg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <504A848B.1090703@wwwdotorg.org> Sender: linux-pci-owner@vger.kernel.org List-ID: On Fri, Sep 07, 2012 at 05:34:35PM -0600, Stephen Warren wrote: > I guess it's a pretty basic premise of the current PCI code that all the > PCI scanning happens well before any device drivers are registered, > which in turn means that device_add() doesn't trigger the device's > probe() until much later, after all the fixups and resource assignments > are done? Are you saying that the PCI layer is again screwed up after all my hard work several years ago to ensure that PCI devices are properly setup _before_ they're made available to the PCI drivers then? That was around the time I was looking at Cardbus stuff, ensuring that that worked with the same guarantees. Not amused. What is wrong with the "probe devices, apply fixups, setup resources, apply more fixups, publish" process that it's had to be yet again broken?