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

From: Abel Vesa
Date: Fri Jan 27 2023 - 05:41:52 EST


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@xxxxxxxxxx>
---

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 --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);
}
mutex_unlock(&rpmhpd_lock);
+
+ genpd_power_off_unused_sync_state(dev);
}

static struct platform_driver rpmhpd_driver = {
--
2.34.1