Skip to contentSkip to conversation

PCI: rcar-host: adjust dependencies for ARM builds

PATCH New Randy Dunlap 1 participant 1 message Nov 7, 2021

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

PATCH 1/1 PCI: rcar-host: adjust dependencies for ARM builds

On ARCH=arm COMPILE_TEST builds, pcie-rcar-host.c uses __clk_is_enable(), so for ARM builds, it should also depend on COMMON_CLK.

Fixes this build error:
arm-linux-gnueabi-ld: drivers/pci/controller/pcie-rcar-host.o: in function `rcar_pcie_aarch32_abort_handler':
pcie-rcar-host.c:(.text+0xdfc): undefined reference to `__clk_is_enabled'

Fixes a18f4b6ea50b ("PCI: rcar: Rename pcie-rcar.c to pcie-rcar-host.c")
Cc Lad Prabhakar <[email protected]>
Cc Lorenzo Pieralisi <[email protected]>
Cc Marek Vasut <[email protected]>
Cc Yoshihiro Shimoda <[email protected]>

---
Fixes: tag might need some help...

 drivers/pci/controller/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/pci/controller/Kconfig +1 -0
@@ -66,6 +66,7 @@ config PCI_RCAR_GEN2
 config PCIE_RCAR_HOST
 	bool "Renesas R-Car PCIe host controller"
 	depends on ARCH_RENESAS || COMPILE_TEST
+	depends on !ARM || (ARM && COMMON_CLK)
 	depends on PCI_MSI_IRQ_DOMAIN
 	help
 	  Say Y here if you want PCIe controller support on R-Car SoCs in host