From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from quartz.orcorp.ca ([184.70.90.242]:53940 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758789Ab3BGSQD (ORCPT ); Thu, 7 Feb 2013 13:16:03 -0500 Date: Thu, 7 Feb 2013 11:15:59 -0700 From: Jason Gunthorpe To: Bjorn Helgaas Cc: Thomas Petazzoni , Thierry Reding , Stephen Warren , Lior Amsalem , Andrew Lunn , Russell King - ARM Linux , Jason Cooper , Arnd Bergmann , Maen Suleiman , linux-pci@vger.kernel.org, Eran Ben-Avi , Nadav Haklai , Gregory Clement , Shadi Ammouri , Tawfik Bayouk , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 19/27] pci: PCIe driver for Marvell Armada 370/XP systems Message-ID: <20130207181559.GA31508@obsidianresearch.com> References: <1359399397-29729-1-git-send-email-thomas.petazzoni@free-electrons.com> <1359399397-29729-20-git-send-email-thomas.petazzoni@free-electrons.com> <5106F9F9.3010905@wwwdotorg.org> <20130129094143.1aad9377@skate> <20130129092006.GA16377@avionic-0098.mockup.avionic-design.de> <20130207112459.5f382ad4@skate> <20130207170020.289bac08@skate> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-pci-owner@vger.kernel.org List-ID: On Thu, Feb 07, 2013 at 11:08:45AM -0700, Bjorn Helgaas wrote: > I think the way you'll have to fix this in the meantime is to use > pci_create_root_bus() directly so you can do things in this sequence: > > pci_create_root_bus > pci_scan_child_bus > pci_bus_assign_resources > pci_bus_add_devices > > dino_probe() is an example of similar code that does this. Erm, but isn't this problem going to strike any system that doesn't have resources assigned by the firmware? If so, a common 'pci_scan_bus_from_scratch' would at least highlight the problem and centralize the work around until it is fixed... Many embedded systems will require this.. Regards, Jason