Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regmap: Move selecting for REGMAP_MDIO and REGMAP_IRQ

If either REGMAP_IRQ or REGMAP_MDIO are set then REGMAP is also set.
This then enables the selecting of IRQ_DOMAIN or MDIO_BUS from REGMAP
based on the above two symbols respectively. This makes it very easy
to end up with "circular dependencies".

Instead select the IRQ_DOMAIN or MDIO_BUS from the symbols that make
use of them. This is almost equivalent to before but makes it less
likely to end up with false circular dependency detections.

Signed-off-by: Andrew Davis <afd@ti.com>
Reported-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Closes: https://lore.kernel.org/r/bfe991fa-f54c-4d58-b2e0-34c4e4eb48f4@linaro.org/
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250516141722.13772-1-afd@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andrew Davis and committed by
Mark Brown
c5a21939 d30e845b

+2 -2
+2 -2
drivers/base/regmap/Kconfig
··· 6 6 config REGMAP 7 7 bool 8 8 default y if (REGMAP_I2C || REGMAP_SPI || REGMAP_SPMI || REGMAP_W1 || REGMAP_AC97 || REGMAP_MMIO || REGMAP_IRQ || REGMAP_SOUNDWIRE || REGMAP_SOUNDWIRE_MBQ || REGMAP_SCCB || REGMAP_I3C || REGMAP_SPI_AVMM || REGMAP_MDIO || REGMAP_FSI) 9 - select IRQ_DOMAIN if REGMAP_IRQ 10 - select MDIO_BUS if REGMAP_MDIO 11 9 help 12 10 Enable support for the Register Map (regmap) access API. 13 11 ··· 56 58 57 59 config REGMAP_MDIO 58 60 tristate 61 + select MDIO_BUS 59 62 60 63 config REGMAP_MMIO 61 64 tristate 62 65 63 66 config REGMAP_IRQ 64 67 bool 68 + select IRQ_DOMAIN 65 69 66 70 config REGMAP_RAM 67 71 tristate