Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] interconnect: qcom: select REGMAP_MMIO for RPM and RPMh
@ 2026-11-30 13:06 Pengpeng Hou
  2026-11-30 13:28 ` Konrad Dybcio
  0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-11-30 13:06 UTC (permalink / raw)
  To: djakov; +Cc: linux-arm-msm, linux-pm, linux-kernel, hppiscas

The RPM and RPMh interconnect implementations create MMIO regmaps
for their register resources. INTERCONNECT_QCOM_SMD_RPM and
INTERCONNECT_QCOM_RPMH do not select the MMIO regmap backend,
leaving unresolved initialization calls when it is not enabled
elsewhere.

Select REGMAP_MMIO from both implementation symbols. This ties the
dependency to the objects making the calls rather than enabling it
unconditionally from the top-level Qualcomm interconnect option.

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

Fixes: 2b6c7d645118 ("interconnect: sdm660: merge common code into icc-rpm")
Fixes: 0a7be6b35da8 ("interconnect: qcom: icc-rpmh: Add QoS configuration support")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
AI assistance: gpt 5 (patch preparation and review).

 drivers/interconnect/qcom/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/interconnect/qcom/Kconfig b/drivers/interconnect/qcom/Kconfig
index 7f3a977..634ab92 100644
--- a/drivers/interconnect/qcom/Kconfig
+++ b/drivers/interconnect/qcom/Kconfig
@@ -250,6 +250,7 @@ config INTERCONNECT_QCOM_RPMH_POSSIBLE
 
 config INTERCONNECT_QCOM_RPMH
 	tristate
+	select REGMAP_MMIO
 
 config INTERCONNECT_QCOM_SA8775P
 	tristate "Qualcomm SA8775P interconnect driver"
@@ -527,3 +528,4 @@ config INTERCONNECT_QCOM_X1E80100
 
 config INTERCONNECT_QCOM_SMD_RPM
 	tristate
+	select REGMAP_MMIO

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-30 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 13:06 [PATCH] interconnect: qcom: select REGMAP_MMIO for RPM and RPMh Pengpeng Hou
2026-11-30 13:28 ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox