From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH 00/28] Refine PCI scan interfaces and make generic pci host bridge Date: Fri, 16 Jan 2015 11:12:43 +0100 Message-ID: <3853153.SqP6BVNhms__39507.4453590952$1421403226$gmane$org@wuerfel> References: <1421372666-12288-1-git-send-email-wangyijing@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <1421372666-12288-1-git-send-email-wangyijing@huawei.com> Sender: linux-m68k-owner@vger.kernel.org List-Id: linux-m68k@vger.kernel.org To: Yijing Wang Cc: Bjorn Helgaas , Jiang Liu , linux-pci@vger.kernel.org, Yinghai Lu , linux-kernel@vger.kernel.org, Marc Zyngier , linux-arm-kernel@lists.infradead.org, Russell King , x86@kernel.org, Thomas Gleixner , Tony Luck , linux-ia64@vger.kernel.org, "David S. Miller" , Guan Xuetao , linux-alpha@vger.kernel.org, linux-m68k@lists.linux-m68k.org, Liviu Dudau , Geert Uytterhoeven On Friday 16 January 2015 09:43:58 Yijing Wang wrote: > This series is based on Bjorn's pci-next branch. I think this is a very nice series, hope we can get this into 3.20. I've replied with a few specific comments, but I see no show-stoppers and I've already retracted a few comments after seeing the bigger picture. > After applied this series, we have following scan interfaces: > > 1. pci_scan_bus_legacy() > parent = NULL, default io/mem/bus resources. > for legacy pci scan > > 2. pci_scan_root_bus() > for callers provide its own parent and io/mem/bus resources > but no platform specific pci_host_bridge operations > > 3. pci_scan_root_bridge() > for callers provide its own parent and io/mem/bus resources > and pci_host_bridge_ops. I still think we will need a split interface for drivers to use that want to call pci_create_host_bridge() manually, but that can come later as we try to migrate the arm32 host bridge drivers to a generic interface away from pci_common_init_dev(). Another follow-up would be to move more of the pcibios_*() functions into pci_host_bridge_ops. Arnd