[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220804103456.3176943-1-abel.vesa@linaro.org>
Date: Thu, 4 Aug 2022 13:34:56 +0300
From: Abel Vesa <abel.vesa@...aro.org>
To: Bjorn Andersson <bjorn.andersson@...aro.org>,
Andy Gross <agross@...nel.org>,
Konrad Dybcio <konrad.dybcio@...ainline.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Cc: Mike Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>, linux-arm-msm@...r.kernel.org,
linux-clk@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Abel Vesa <abel.vesa@...aro.org>
Subject: [RFC] clk: qcom: common: Detach the power domain at the end of probe
None of the CCs actually need the PD attached to their device,
but rather some GDSCs registered by those CCs need that PD as a parent
in order to propagate power gating and the performance state.
So lets detach the PD from the CC right at the end of probe, after
everything has been successfully set up.
Signed-off-by: Abel Vesa <abel.vesa@...aro.org>
---
drivers/clk/qcom/common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c
index 75f09e6e057e..c918c91775ae 100644
--- a/drivers/clk/qcom/common.c
+++ b/drivers/clk/qcom/common.c
@@ -303,6 +303,8 @@ int qcom_cc_really_probe(struct platform_device *pdev,
if (ret)
return ret;
+ dev_pm_domain_detach(dev, true);
+
return 0;
}
EXPORT_SYMBOL_GPL(qcom_cc_really_probe);
--
2.34.1
Powered by blists - more mailing lists