From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v7 3/3] arm64: Add architecture support for PCI Date: Mon, 17 Mar 2014 17:38:21 +0000 Message-ID: <20140317173821.GJ24070@arm.com> References: <1394811258-1500-1-git-send-email-Liviu.Dudau@arm.com> <1394811258-1500-4-git-send-email-Liviu.Dudau@arm.com> <20140314171457.GK18126@arm.com> <201403141838.08900.arnd@arndb.de> <20140314180527.GZ6457@e106497-lin.cambridge.arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20140314180527.GZ6457@e106497-lin.cambridge.arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Arnd Bergmann , linux-pci , Bjorn Helgaas , Will Deacon , Benjamin Herrenschmidt , linaro-kernel , LKML , "devicetree@vger.kernel.org" , LAKML , Tanmay Inamdar , Grant Likely List-Id: devicetree@vger.kernel.org On Fri, Mar 14, 2014 at 06:05:27PM +0000, Liviu Dudau wrote: > On Fri, Mar 14, 2014 at 05:38:08PM +0000, Arnd Bergmann wrote: > > On Friday 14 March 2014, Catalin Marinas wrote: > > > On Fri, Mar 14, 2014 at 03:34:18PM +0000, Liviu Dudau wrote: > > > > --- /dev/null > > > > +++ b/arch/arm64/kernel/pci.c > > > [...] > > > > +int pci_register_io_range(phys_addr_t address, resource_size_t size) > > > [...] > > > > +unsigned long pci_address_to_pio(phys_addr_t address) > > > [...] > > > > +void pcibios_fixup_bus(struct pci_bus *bus) > > > [ actually most of this file ] > > > > > > Maybe it was raised before already but can we have __weak generic > > > definitions of these functions? They don't seem to be arm64 specific in > > > any way. [...] > Catalin, if you are happy to ask for ACKs from all arch maintainers that might get > affected by our custom version of pci_address_to_pio() before you can pull PCI support > for arm64 then I can propose a new patchset. You don't need to change the other architectures, that's the point of a __weak definition, it will be automatically overridden. If you want, you can even place a GENERIC_PCI or whatever config option that is only selected by arm64 for the time being. -- Catalin