Skip to contentSkip to conversation

PCI: apple: select CONFIG_PCI_HOST_COMMON

PATCH In review Arnd Bergmann 2 participants 2 messages Oct 13, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: apple: select CONFIG_PCI_HOST_COMMON

From: Arnd Bergmann <[email protected]>

If this symbol is not already selected by another driver, pci-apple.o fails to link:

aarch64-linux-ld: drivers/pci/controller/pcie-apple.o: in function `apple_pcie_probe':
pcie-apple.c:(.text+0xd28): undefined reference to `pci_host_common_probe'

Add another 'select' statement here, the same that is used for the other drivers.

Fixes a8bbe0366a3e ("PCI: apple: Add initial hardware bring-up")
---
 drivers/pci/controller/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/pci/controller/Kconfig +1 -0
index cc1fcc89c58f..5af99701e1f6 100644
@@ -322,6 +322,7 @@ config PCIE_APPLE
 	depends on ARCH_APPLE || COMPILE_TEST
 	depends on OF
 	depends on PCI_MSI_IRQ_DOMAIN
+	select PCI_HOST_COMMON
 	help
 	  Say Y here if you want to enable PCIe controller support on Apple
 	  system-on-chips, like the Apple M1. This is required for the USB
Signature · 1 line
2.29.2
#1 lore raw
Quoted 8 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

If this symbol is not already selected by another driver, pci-apple.o fails to link:

aarch64-linux-ld: drivers/pci/controller/pcie-apple.o: in function `apple_pcie_probe':
pcie-apple.c:(.text+0xd28): undefined reference to `pci_host_common_probe'

Quoted 8 lines

Add another 'select' statement here, the same that is used for the other drivers.

Fixes a8bbe0366a3e ("PCI: apple: Add initial hardware bring-up")
---
 drivers/pci/controller/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Squashed it in the commit it is fixing and rebuilt my pci/apple branch.

Thanks,
Lorenzo

Quoted 16 lines
drivers/pci/controller/Kconfig +1 -0
index cc1fcc89c58f..5af99701e1f6 100644
@@ -322,6 +322,7 @@ config PCIE_APPLE
 	depends on ARCH_APPLE || COMPILE_TEST
 	depends on OF
 	depends on PCI_MSI_IRQ_DOMAIN
+	select PCI_HOST_COMMON
 	help
 	  Say Y here if you want to enable PCIe controller support on Apple
 	  system-on-chips, like the Apple M1. This is required for the USB
Signature · 1 line
2.29.2