[PATCH v3 2/3] irqchip: LAN966X_OIC should depend on MCHP_LAN966X_PCI

From: Geert Uytterhoeven
Date: Mon Jan 20 2025 - 09:35:57 EST


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@xxxxxxxxx>
Acked-by: Herve Codina <herve.codina@xxxxxxxxxxx>
---
v3:
- Fix symbol name in one-line summary,
- Add Acked-by,

v2:
- Drop dependency on SOC_LAN966, as the OIC is used only in LAN966x
PCI endpoint mode,
- Replace MFD_LAN966X_PCI by MCHP_LAN966X_PCI, as the latter is the
symbol that ended upstream.
---
drivers/irqchip/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 22f5fbd41f65d97e..cf713b6e9cc9346f 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -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
--
2.43.0