[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210920095730.1216692-1-arnd@kernel.org>
Date: Mon, 20 Sep 2021 11:57:10 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Marek Vasut <marek.vasut+renesas@...il.com>
Cc: Arnd Bergmann <arnd@...db.de>, Rob Herring <robh@...nel.org>,
Krzysztof WilczyĆski <kw@...ux.com>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@...renesas.com>,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] PCI: rcar: add COMMON_CLK dependency
From: Arnd Bergmann <arnd@...db.de>
The __clk_is_enabled() interface is only available when building for
platforms using CONFIG_COMMON_CLK:
arm-linux-gnueabi-ld: drivers/pci/controller/pcie-rcar-host.o: in function `rcar_pcie_aarch32_abort_handler':
pcie-rcar-host.c:(.text+0x8fc): undefined reference to `__clk_is_enabled'
Add the necessary dependency to the COMPILE_TEST path.
Fixes: a115b1bd3af0 ("PCI: rcar: Add L1 link state fix into data abort hook")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
drivers/pci/controller/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig
index 326f7d13024f..53e3648fe872 100644
--- a/drivers/pci/controller/Kconfig
+++ b/drivers/pci/controller/Kconfig
@@ -65,7 +65,7 @@ config PCI_RCAR_GEN2
config PCIE_RCAR_HOST
bool "Renesas R-Car PCIe host controller"
- depends on ARCH_RENESAS || COMPILE_TEST
+ depends on ARCH_RENESAS || (COMMON_CLK && COMPILE_TEST)
depends on PCI_MSI_IRQ_DOMAIN
help
Say Y here if you want PCIe controller support on R-Car SoCs in host
--
2.29.2
Powered by blists - more mailing lists