]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
reset: mchp: sparx5: Add MCHP_LAN966X_PCI dependency
authorHerve Codina <herve.codina@bootlin.com>
Mon, 14 Oct 2024 12:46:33 +0000 (14:46 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 24 Oct 2024 10:09:34 +0000 (12:09 +0200)
The sparx5 reset controller depends on the SPARX5 architecture or the
LAN966x SoC.

This reset controller can be used by the LAN966x PCI device and so it
needs to be available when the LAN966x PCI device is enabled.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20241014124636.24221-5-herve.codina@bootlin.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/Kconfig

index d28c4401a31096f38ad9372504752419938648b3..6337bcbd9b679cd24eec91b63bf83b9417e3667e 100644 (file)
@@ -147,7 +147,7 @@ config RESET_LPC18XX
 
 config RESET_MCHP_SPARX5
        bool "Microchip Sparx5 reset driver"
-       depends on ARCH_SPARX5 || SOC_LAN966 || COMPILE_TEST
+       depends on ARCH_SPARX5 || SOC_LAN966 || MCHP_LAN966X_PCI || COMPILE_TEST
        default y if SPARX5_SWITCH
        select MFD_SYSCON
        help