]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: qcom: gcc-x1e80100: Unregister GCC_GPU_CFG_AHB_CLK/GCC_DISP_XO_CLK
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Sat, 11 Jan 2025 16:54:18 +0000 (17:54 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 5 Feb 2025 03:15:21 +0000 (21:15 -0600)
commitb60521eff227ef459e03879cbea2b2bd85a8d7af
treebe86d1172e027af70f398c0030c76ef4f178d39a
parent2014c95afecee3e76ca4a56956a936e23283f05b
clk: qcom: gcc-x1e80100: Unregister GCC_GPU_CFG_AHB_CLK/GCC_DISP_XO_CLK

The GPU clock is required for CPU access to GPUSS registers. It was
previously decided (on this and many more platforms) that the added
overhead/hassle introduced by keeping track of it would not bring much
measurable improvement in the power department.

The display clock is basically the same story over again.

Now, we're past that discussion and this commit is not trying to change
that. Instead, the clocks are both force-enabled in .probe *and*
registered with the common clock framework, resulting in them being
toggled off after ignore_unused.

Unregister said clocks to fix breakage when clk_ignore_unused is absent
(as it should be).

Fixes: 161b7c401f4b ("clk: qcom: Add Global Clock controller (GCC) driver for X1E80100")
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250111-topic-x1e_fixups-v1-1-77dc39237c12@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/gcc-x1e80100.c