From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752591AbaCMAMu (ORCPT ); Wed, 12 Mar 2014 20:12:50 -0400 Received: from dliviu.plus.com ([80.229.23.120]:41696 "EHLO smtp.dudau.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbaCMAMt (ORCPT ); Wed, 12 Mar 2014 20:12:49 -0400 Date: Thu, 13 Mar 2014 00:11:09 +0000 From: Liviu Dudau To: Jingoo Han Cc: "'Liviu Dudau'" , "'linux-pci'" , "'Bjorn Helgaas'" , "'Catalin Marinas'" , "'Will Deacon'" , "'linaro-kernel'" , "'Benjamin Herrenschmidt'" , "'LKML'" , devicetree@vger.kernel.org, "'LAKML'" , "'Tanmay Inamdar'" , "'Arnd Bergmann'" Subject: Re: [PATCH v6 3/3] arm64: Add architecture support for PCI Message-ID: <20140313001109.GA6915@bart.dudau.co.uk> Mail-Followup-To: Jingoo Han , 'Liviu Dudau' , 'linux-pci' , 'Bjorn Helgaas' , 'Catalin Marinas' , 'Will Deacon' , 'linaro-kernel' , 'Benjamin Herrenschmidt' , 'LKML' , devicetree@vger.kernel.org, 'LAKML' , 'Tanmay Inamdar' , 'Arnd Bergmann' References: <1394020150-1875-1-git-send-email-Liviu.Dudau@arm.com> <1394020150-1875-4-git-send-email-Liviu.Dudau@arm.com> <000101cf3dce$df2c1840$9d8448c0$%han@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <000101cf3dce$df2c1840$9d8448c0$%han@samsung.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Thu Mar 13 00:12:48 2014 X-DSPAM-Confidence: 0.9899 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 5320f8003191056216570 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 12, 2014 at 05:41:33PM +0900, Jingoo Han wrote: > On Wednesday, March 05, 2014 8:49 PM, Liviu Dudau wrote: > > > > Use the generic host bridge functions to provide support for > > PCI Express on arm64. There is no support for ISA memory. > > > > Signed-off-by: Liviu Dudau > > Tested-by: Tanmay Inamdar > > --- > > arch/arm64/Kconfig | 19 +++- > > arch/arm64/include/asm/Kbuild | 1 + > > arch/arm64/include/asm/io.h | 3 +- > > arch/arm64/include/asm/pci.h | 49 +++++++++ > > arch/arm64/kernel/Makefile | 1 + > > arch/arm64/kernel/pci.c | 173 ++++++++++++++++++++++++++++++++ > > 6 files changed, 244 insertions(+), 2 deletions(-) > > create mode 100644 arch/arm64/include/asm/pci.h > > create mode 100644 arch/arm64/kernel/pci.c > > [.....] > > > --- /dev/null > > +++ b/arch/arm64/include/asm/pci.h > > [.....] > > > + > > +static inline int pci_domain_nr(struct pci_bus *bus) > > +{ > > + struct pci_host_bridge *bridge = find_pci_host_bridge(bus); > > + > > + if (bridge) > > + return bridge->domain_nr; > > + > > + return 0; > > +} > > Hi Liviu Dudau, > > When CONFIG_PCI=n, the following build errors happen. :-( > Would you confirm this? > > In file included from include/linux/pci.h:1393:0, > from drivers/scsi/scsi_lib.c:19: > arch/arm64/include/asm/pci.h:31:19: error: redefinition of 'pci_domain_nr' > static inline int pci_domain_nr(struct pci_bus *bus) > ^ > In file included from drivers/scsi/scsi_lib.c:19:0: > include/linux/pci.h:1383:19: note: previous definition of 'pci_domain_nr' was here > static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } > ^ > ..... Hi Jingoo, I confirm the build error. Sorry for missing out on this test. I've now got out of some more pressing tasks and I will post v7 tomorrow. Best regards, Liviu > > Best regards, > Jingoo Han > > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- ------------------- .oooO ( ) \ ( Oooo. \_) ( ) ) / (_/ One small step for me ...