Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH] clk: qcom: camcc-sc8280xp: Remove always-on GDSC hard-coding
@ 2024-07-15 14:59 Bryan O'Donoghue
  2024-07-17  6:32 ` Satya Priya Kakitapalli (Temp)
  0 siblings, 1 reply; 14+ messages in thread
From: Bryan O'Donoghue @ 2024-07-15 14:59 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd
  Cc: dmitry.baryshkov, quic_skakitap, stable, linux-arm-msm, linux-clk,
	linux-kernel, Bryan O'Donoghue

We have both shared_ops for the Titan Top GDSC and a hard-coded always on
whack the register and forget about it in probe().

@static struct clk_branch camcc_gdsc_clk = {}

Only one representation of the Top GDSC is required. Use the CCF
representation not the hard-coded register write.

Fixes: ff93872a9c61 ("clk: qcom: camcc-sc8280xp: Add sc8280xp CAMCC")
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> # Lenovo X13s
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 drivers/clk/qcom/camcc-sc8280xp.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/clk/qcom/camcc-sc8280xp.c b/drivers/clk/qcom/camcc-sc8280xp.c
index 479964f91608..f99cd968459c 100644
--- a/drivers/clk/qcom/camcc-sc8280xp.c
+++ b/drivers/clk/qcom/camcc-sc8280xp.c
@@ -3031,19 +3031,14 @@ static int camcc_sc8280xp_probe(struct platform_device *pdev)
 	clk_lucid_pll_configure(&camcc_pll6, regmap, &camcc_pll6_config);
 	clk_lucid_pll_configure(&camcc_pll7, regmap, &camcc_pll7_config);
 
-	/* Keep some clocks always-on */
-	qcom_branch_set_clk_en(regmap, 0xc1e4); /* CAMCC_GDSC_CLK */
-
 	ret = qcom_cc_really_probe(&pdev->dev, &camcc_sc8280xp_desc, regmap);
 	if (ret)
-		goto err_disable;
+		goto err_put_rpm;
 
 	pm_runtime_put(&pdev->dev);
 
 	return 0;
 
-err_disable:
-	regmap_update_bits(regmap, 0xc1e4, BIT(0), 0);
 err_put_rpm:
 	pm_runtime_put_sync(&pdev->dev);
 

---
base-commit: 3fe121b622825ff8cc995a1e6b026181c48188db
change-id: 20240715-linux-next-24-07-13-sc8280xp-camcc-fixes-274f11b396ac

Best regards,
-- 
Bryan O'Donoghue <bryan.odonoghue@linaro.org>


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-07-29 10:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-15 14:59 [PATCH] clk: qcom: camcc-sc8280xp: Remove always-on GDSC hard-coding Bryan O'Donoghue
2024-07-17  6:32 ` Satya Priya Kakitapalli (Temp)
2024-07-17  8:49   ` Bryan O'Donoghue
2024-07-17 11:08     ` Satya Priya Kakitapalli (Temp)
2024-07-17 11:11       ` Bryan O'Donoghue
2024-07-19  7:25         ` Satya Priya Kakitapalli (Temp)
2024-07-20  8:33           ` Bryan O'Donoghue
2024-07-22  8:57             ` Satya Priya Kakitapalli (Temp)
2024-07-23  9:29               ` Bryan O'Donoghue
2024-07-23 11:37                 ` Satya Priya Kakitapalli (Temp)
2024-07-23 11:49                   ` Dmitry Baryshkov
2024-07-26  7:01                 ` Satya Priya Kakitapalli (Temp)
2024-07-26 20:31                   ` Bryan O'Donoghue
2024-07-29 10:57                     ` Satya Priya Kakitapalli (Temp)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox