diff mbox series

[v2] soc/qcom: Make QCOM_RPMPD select PM_GENERIC_DOMAINS/_OF

Message ID 20220707210428.30382-1-konrad.dybcio@somainline.org (mailing list archive)
State Superseded
Headers show
Series [v2] soc/qcom: Make QCOM_RPMPD select PM_GENERIC_DOMAINS/_OF | expand

Commit Message

Konrad Dybcio July 7, 2022, 9:04 p.m. UTC
The driver uses generic genpd OF APIs and with a very minimal config
where nothing else selects them, this driver will not probe, as
of_genpd_add_provider_onecell will return -EOPNOTSUPP.

Make sure to select these in Kconfig to prevent that.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
As Intel's kernel test robot pointed out, the v1 was faulty, as
I somehow didn't think about making it depend on PM (it's required
for PM_GENERIC_DOMAINS/_OF)...


 drivers/soc/qcom/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
index e718b8735444..7e714327018f 100644
--- a/drivers/soc/qcom/Kconfig
+++ b/drivers/soc/qcom/Kconfig
@@ -129,7 +129,10 @@  config QCOM_RPMHPD
 
 config QCOM_RPMPD
 	tristate "Qualcomm RPM Power domain driver"
+	depends on PM
 	depends on QCOM_SMD_RPM
+	select PM_GENERIC_DOMAINS
+	select PM_GENERIC_DOMAINS_OF
 	help
 	  QCOM RPM Power domain driver to support power-domains with
 	  performance states. The driver communicates a performance state