Skip to contentSkip to conversation

soc: qcom: Kconfig: make RPMH match Command DB setting

PATCH New Lina Iyer 1 participant 1 message Oct 8, 2020

Subsystems (2)
lore
Share & tools
lore

Lina Iyer

author
#0 lore raw

PATCH 1/1 soc: qcom: Kconfig: make RPMH match Command DB setting

RPMH and drivers that use RPMH APIs need Command DB API to find the dynamic resource information. Let's match the RPMH to match the Command DB configuration.

This should fix undefined symbol references reported by CI :

aarch64-linux-ld: drivers/clk/qcom/clk-rpmh.o: in function `clk_rpmh_probe':

Quoted 2 lines
Quoted 2 lines

clk-rpmh.c:(.text+0xac): undefined reference to `cmd_db_read_addr'
aarch64-linux-ld: clk-rpmh.c:(.text+0xc0): undefined reference to `cmd_db_read_aux_data'

aarch64-linux-ld: drivers/soc/qcom/rpmh-rsc.o: in function `rpmh_rsc_probe':

Quoted 1 line
Quoted 1 line

rpmh-rsc.c:(.text+0x42c): undefined reference to `cmd_db_ready'

aarch64-linux-ld: drivers/regulator/qcom-rpmh-regulator.o: in function `rpmh_regulator_probe':

Quoted 1 line
Quoted 1 line

qcom-rpmh-regulator.c:(.text+0x3e0): undefined reference to `cmd_db_read_addr'

---
 drivers/soc/qcom/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/soc/qcom/Kconfig +1 -0
index e2b8427af84c..49875cd25a12 100644
@@ -94,6 +94,7 @@ config QCOM_RMTFS_MEM
 config QCOM_RPMH
 	bool "Qualcomm RPM-Hardened (RPMH) Communication"
 	depends on ARCH_QCOM || COMPILE_TEST
+	depends on (QCOM_COMMAND_DB || !QCOM_COMMAND_DB)
 	help
 	  Support for communication with the hardened-RPM blocks in
 	  Qualcomm Technologies Inc (QTI) SoCs. RPMH communication uses an
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project