]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: gcc: Make disp gpll0 branch aon for sc7180/sdm845
authorTaniya Das <tdas@codeaurora.org>
Wed, 15 Jul 2020 06:54:10 +0000 (12:24 +0530)
committerStephen Boyd <sboyd@kernel.org>
Tue, 21 Jul 2020 07:44:11 +0000 (00:44 -0700)
commit5479cff0c5d63be30fe5331df7cd67268b3a09d4
tree80efecf6f90b270287491fc5e0ebfa4765dd0651
parentdbf652f4f1d9b0eab61cf81222c2805e410bd889
clk: qcom: gcc: Make disp gpll0 branch aon for sc7180/sdm845

The display gpll0 branch clock inside GCC needs to always be enabled.
Otherwise the AHB clk (disp_cc_mdss_ahb_clk_src) for the display clk
controller (dispcc) will stop clocking while sourcing from gpll0 when
this branch inside GCC is turned off during unused clk disabling. We can
never turn this branch off because the AHB clk for the display subsystem
is needed to read/write any registers inside the display subsystem
including clk related ones. This makes this branch a really easy way to
turn off AHB access to the display subsystem and cause all sorts of
mayhem. Let's just make the clk ops keep the clk enabled forever and
ignore any attempts to disable this clk so that dispcc accesses keep
working.

Signed-off-by: Taniya Das <tdas@codeaurora.org>
Reported-by: Evan Green <evgreen@chromium.org>
Link: https://lore.kernel.org/r/1594796050-14511-1-git-send-email-tdas@codeaurora.org
Fixes: 691ee3530f34 ("clk: qcom: Add Global Clock controller (GCC) driver for SC7180")
Fixes: f2641a7fbb68 ("clk: qcom: Add Global Clock controller (GCC) driver for SDM845")
[sboyd@kernel.org: Fill out commit text more]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-sc7180.c
drivers/clk/qcom/gcc-sdm845.c