[PATCH] regulator: qcom-refgen: select the MMIO regmap backend

From: Pengpeng Hou

Date: Mon Nov 30 2026 - 08:17:43 EST


The REFGEN regulator driver creates an MMIO regmap but depends only
on the regmap core. That core dependency does not provide the MMIO
backend, so the driver can be selected with REGMAP_MMIO disabled and
fail to link.

Replace the dependency on REGMAP with a selection of REGMAP_MMIO.
The backend enables the core; retaining the old dependency while
selecting the backend would introduce a recursive configuration
dependency.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: 7cbfbe237960 ("regulator: Introduce Qualcomm REFGEN regulator driver")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
AI assistance: gpt 5 (patch preparation and review).

drivers/regulator/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index 83a76b7..4fb0fbe 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -1165,7 +1165,7 @@ config REGULATOR_QCOM_REFGEN
tristate "Qualcomm REFGEN regulator driver"
depends on ARCH_QCOM || COMPILE_TEST
depends on HAS_IOMEM
- depends on REGMAP
+ select REGMAP_MMIO
help
This driver supports the MMIO-mapped reference voltage regulator,
used internally by some PHYs on many Qualcomm SoCs.

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244