diff mbox series

PCI: PCI_IXP4XX should depend on ARCH_IXP4XX

Message ID 6a88e55fe58fc280f4ff1ca83c154e4895b6dcbf.1624972789.git.geert+renesas@glider.be (mailing list archive)
State Accepted
Delegated to: Lorenzo Pieralisi
Headers show
Series PCI: PCI_IXP4XX should depend on ARCH_IXP4XX | expand

Commit Message

Geert Uytterhoeven June 29, 2021, 1:20 p.m. UTC
The Intel IXP4xx PCI controller is only present on Intel IXP4xx
XScale-based network processor SoCs.  Hence add a dependency on
ARCH_IXP4XX, to prevent asking the user about this driver when
configuring a kernel without support for the XScale processor family.

Fixes: f7821b4934584824 ("PCI: ixp4xx: Add a new driver for IXP4xx")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/pci/controller/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Linus Walleij June 30, 2021, 12:25 a.m. UTC | #1
On Tue, Jun 29, 2021 at 3:20 PM Geert Uytterhoeven
<geert+renesas@glider.be> wrote:

> The Intel IXP4xx PCI controller is only present on Intel IXP4xx
> XScale-based network processor SoCs.  Hence add a dependency on
> ARCH_IXP4XX, to prevent asking the user about this driver when
> configuring a kernel without support for the XScale processor family.
>
> Fixes: f7821b4934584824 ("PCI: ixp4xx: Add a new driver for IXP4xx")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij
Lorenzo Pieralisi July 23, 2021, 3:11 p.m. UTC | #2
On Tue, 29 Jun 2021 15:20:45 +0200, Geert Uytterhoeven wrote:
> The Intel IXP4xx PCI controller is only present on Intel IXP4xx
> XScale-based network processor SoCs.  Hence add a dependency on
> ARCH_IXP4XX, to prevent asking the user about this driver when
> configuring a kernel without support for the XScale processor family.

Applied to pci/misc, thanks!

[1/1] PCI: controller: PCI_IXP4XX should depend on ARCH_IXP4XX
      https://git.kernel.org/lpieralisi/pci/c/9f1168cf26

Thanks,
Lorenzo
diff mbox series

Patch

diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig
index 5e1e3796efa4e327..326f7d13024f9037 100644
--- a/drivers/pci/controller/Kconfig
+++ b/drivers/pci/controller/Kconfig
@@ -40,6 +40,7 @@  config PCI_FTPCI100
 config PCI_IXP4XX
 	bool "Intel IXP4xx PCI controller"
 	depends on ARM && OF
+	depends on ARCH_IXP4XX || COMPILE_TEST
 	default ARCH_IXP4XX
 	help
 	  Say Y here if you want support for the PCI host controller found