]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: qcom: dispcc-sm8250: Use shared ops on the mdss vsync clk
authorVal Packett <val@packett.cool>
Thu, 12 Mar 2026 11:12:12 +0000 (08:12 -0300)
committerBjorn Andersson <andersson@kernel.org>
Thu, 19 Mar 2026 02:08:52 +0000 (21:08 -0500)
commit8c522da70f0c2e5148c4c13ccb1c64cca57a6fdb
treefc56105ebe2b922aa9b9ece93c38636bd540838e
parentf641773e10fa5e85154554b15f2aff30e050bdcb
clk: qcom: dispcc-sm8250: Use shared ops on the mdss vsync clk

mdss_gdsc can get stuck on boot due to RCGs being left on from last boot.
As a fix, commit 01a0a6cc8cfd ("clk: qcom: Park shared RCGs upon
registration") introduced a callback to ensure the RCG is off upon init.
However, the fix depends on all shared RCGs being marked as such in code.

For SM8150/SC8180X/SM8250 the MDSS vsync clock was using regular ops,
unlike the same clock in the SC7180 code. This was causing display to
frequently fail to initialize after rebooting on the Surface Pro X.
Fix by using shared ops for this clock.

Fixes: 80a18f4a8567 ("clk: qcom: Add display clock controller driver for SM8150 and SM8250")
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-8-val@packett.cool
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/dispcc-sm8250.c