diff mbox series

[RFC,v2,2/2] soc: qcom: rmphpd: Call the genpd unused power off sync state callback

Message ID 20230127104054.895129-2-abel.vesa@linaro.org
State New
Headers show
Series [RFC,v2,1/2] PM: domains: Skip disabling unused domains if provider has sync_state | expand

Commit Message

Abel Vesa Jan. 27, 2023, 10:40 a.m. UTC
Genpd provides a generic sync state callback for disabling unused
domains for a specific provider identified by its device. Call that
generic callback from the existing sync state callback in order to
disable all RPMh PD unused domains when all the consumers have probed.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>

This patch was not part of v1. Added to this patchset for context.

 drivers/soc/qcom/rpmhpd.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
index f20e2a49a669..8b341cb97546 100644
--- a/drivers/soc/qcom/rpmhpd.c
+++ b/drivers/soc/qcom/rpmhpd.c
@@ -832,6 +832,8 @@  static void rpmhpd_sync_state(struct device *dev)
 			dev_err(dev, "failed to sync %s\n", pd->res_name);
+	genpd_power_off_unused_sync_state(dev);
 static struct platform_driver rpmhpd_driver = {