lkml.org 
[lkml]   [2023]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH v2 2/2] soc: qcom: rmphpd: Call the genpd unused power off sync state callback
Date
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 --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
\
 
 \ /
  Last update: 2023-03-26 23:58    [W:0.146 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site