Skip to contentSkip to conversation

PCI: iproc: Fix BCMA dependency in Kconfig

PATCH Superseded Ray Jui 2 participants 3 messages Jul 28, 2015 – Jul 29, 2015 PCI

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Ray Jui

author
#0 lore raw

PATCH 1/1 PCI: iproc: Fix BCMA dependency in Kconfig

The current iProc BCMA front-end driver can only work on ARM32 based platforms; therefore its config option in Kconfig should be changed to reflect that. This fixes arm64 allmodconfig build failure when compiling the the iProc BCMA driver that contains struct pci_sys_data that is arm32 specific

---
 drivers/pci/host/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/host/Kconfig +1 -1
index d2c6144..2cc9afe 100644
@@ -136,7 +136,7 @@ config PCIE_IPROC_PLATFORM
 
 config PCIE_IPROC_BCMA
 	bool "Broadcom iProc PCIe BCMA bus driver"
-	depends on ARCH_BCM_IPROC || (ARM && COMPILE_TEST)
+	depends on ARCH_BCM_IPROC && ARM
 	select PCIE_IPROC
 	select BCMA
 	select PCI_DOMAINS
Signature · 1 line
1.7.9.5
#1 lore raw

drivers/pci/host/Kconfig config PCIE_IPROC_PLATFORM · line 142

Quoted 8 lines · On Tuesday 28 July 2015 11:52:13 Ray Jui wrote:

config PCIE_IPROC_BCMA
bool "Broadcom iProc PCIe BCMA bus driver"

drivers/pci/host/Kconfig +1 -1
-       depends on ARCH_BCM_IPROC || (ARM && COMPILE_TEST)
+       depends on ARCH_BCM_IPROC && ARM
        select PCIE_IPROC
        select BCMA
        select PCI_DOMAINS

How about this:

	depends on ARM && (ARCH_BCM_IPROC || COMPILE_TEST)

That would leave the compile test present for non-iproc ARM platforms while preventing ARM64 and MIPS builds with ARCH_BCM_IPROC set.

Arnd

author
#2 lore raw
Quoted 12 lines · Arnd Bergmann

drivers/pci/host/Kconfig config PCIE_IPROC_PLATFORM · line 142

Quoted 8 lines · On Tuesday 28 July 2015 11:52:13 Ray Jui wrote:

config PCIE_IPROC_BCMA
bool "Broadcom iProc PCIe BCMA bus driver"

drivers/pci/host/Kconfig +1 -1
-       depends on ARCH_BCM_IPROC || (ARM && COMPILE_TEST)
+       depends on ARCH_BCM_IPROC && ARM
        select PCIE_IPROC
        select BCMA
        select PCI_DOMAINS

How about this:

Quoted 8 lines
	depends on ARM && (ARCH_BCM_IPROC || COMPILE_TEST)

That would leave the compile test present for non-iproc ARM platforms while preventing ARM64 and MIPS builds with ARCH_BCM_IPROC set.

Arnd

That is indeed better. Broader compile test coverage is always good. I'll submit another patch with the above suggested change.

Thanks,

Ray