[PATCH 12/12] clk: qcom: gcc-mdm9607: Drop redundant register update during probe

From: Stephan Gerhold

Date: Tue Jun 09 2026 - 10:24:57 EST


From: Stephan Gerhold <stephan@xxxxxxxxxxx>

GPLL0 is pretty much guaranteed to be already on (and voted) during boot,
since it's used by the CPU and also various other components such as UART.
We also vote for this bit in the actual GPLL0 definition, which will be set
as soon as any driver in the kernel requires using the GPLL0 clock.

All in all, this makes separately voting for GPLL0 during probe redundant,
especially because the "acpuclock" in the comment is a downstream construct
that does not exist in upstream.

Signed-off-by: Stephan Gerhold <stephan@xxxxxxxxxxx>
---
drivers/clk/qcom/gcc-mdm9607.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/drivers/clk/qcom/gcc-mdm9607.c b/drivers/clk/qcom/gcc-mdm9607.c
index 0bd4c12483cd..ce78ebc8ffec 100644
--- a/drivers/clk/qcom/gcc-mdm9607.c
+++ b/drivers/clk/qcom/gcc-mdm9607.c
@@ -1565,16 +1565,7 @@ MODULE_DEVICE_TABLE(of, gcc_mdm9607_match_table);

static int gcc_mdm9607_probe(struct platform_device *pdev)
{
- struct regmap *regmap;
-
- regmap = qcom_cc_map(pdev, &gcc_mdm9607_desc);
- if (IS_ERR(regmap))
- return PTR_ERR(regmap);
-
- /* Vote for GPLL0 to turn on. Needed by acpuclock. */
- regmap_update_bits(regmap, 0x45000, BIT(0), BIT(0));
-
- return qcom_cc_really_probe(&pdev->dev, &gcc_mdm9607_desc, regmap);
+ return qcom_cc_probe(pdev, &gcc_mdm9607_desc);
}

static struct platform_driver gcc_mdm9607_driver = {

--
2.54.0