mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pengpeng Hou <hppiscas@163.com>
To: lgirdwood@gmail.com
Cc: broonie@kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, hppiscas@163.com
Subject: [PATCH] regulator: qcom-refgen: select the MMIO regmap backend
Date: Mon, 30 Nov 2026 21:17:10 +0800	[thread overview]
Message-ID: <20261130131710.81970-1-hppiscas@163.com> (raw)

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@163.com>
---
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


             reply	other threads:[~2026-11-30 13:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 13:17 Pengpeng Hou [this message]
2026-11-30 13:32 ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130131710.81970-1-hppiscas@163.com \
    --to=hppiscas@163.com \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®