]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: qcom: gcc-sc8180x: Enable runtime PM support
authorVal Packett <val@packett.cool>
Thu, 12 Mar 2026 11:12:10 +0000 (08:12 -0300)
committerBjorn Andersson <andersson@kernel.org>
Thu, 19 Mar 2026 02:08:52 +0000 (21:08 -0500)
The GCC block on SC8180X is powered by the CX rail. We need to ensure
that it's enabled to prevent unwanted power collapse.

Enable runtime PM to keep the power flowing only when necessary.

Signed-off-by: Val Packett <val@packett.cool>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260312112321.370983-6-val@packett.cool
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gcc-sc8180x.c

index 4095a1f54a09908729f2ac35d21ffc40c6996e8a..2888c4ebd5e84081b9f0cea99191312a695ff3ce 100644 (file)
@@ -4663,6 +4663,7 @@ static const struct qcom_cc_desc gcc_sc8180x_desc = {
        .num_resets = ARRAY_SIZE(gcc_sc8180x_resets),
        .gdscs = gcc_sc8180x_gdscs,
        .num_gdscs = ARRAY_SIZE(gcc_sc8180x_gdscs),
+       .use_rpm = true,
 };
 
 static const struct of_device_id gcc_sc8180x_match_table[] = {