]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
irqchip/lan966x-oic: Make CONFIG_LAN966X_OIC depend on CONFIG_MCHP_LAN966X_PCI
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 20 Jan 2025 14:35:02 +0000 (15:35 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 23 Jan 2025 10:59:10 +0000 (11:59 +0100)
The Microchip LAN966x outband interrupt controller is only present on
Microchip LAN966x SoCs, and only used in PCI endpoint mode.  Hence add a
dependency on MCHP_LAN966X_PCI, to prevent asking the user about this
driver when configuring a kernel without Microchip LAN966x PCIe support.

Fixes: 3e3a7b35332924c8 ("irqchip: Add support for LAN966x OIC")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/all/28e8a605e72ee45e27f0d06b2b71366159a9c782.1737383314.git.geert+renesas@glider.be
drivers/irqchip/Kconfig

index be063bfb50c4b356748c83118677262bdf07aea0..c11b9965c4ad9bc5b020629253fcae543f7f74dc 100644 (file)
@@ -169,6 +169,7 @@ config IXP4XX_IRQ
 
 config LAN966X_OIC
        tristate "Microchip LAN966x OIC Support"
+       depends on MCHP_LAN966X_PCI || COMPILE_TEST
        select GENERIC_IRQ_CHIP
        select IRQ_DOMAIN
        help