linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: qcom: fix disp_cc_mdss_mdp_clk_src issues on sdm845
@ 2021-12-08  2:22 Dmitry Baryshkov
  2021-12-08  2:22 ` [PATCH 1/2] clk: qcom: add API to safely park RCG2 sources Dmitry Baryshkov
  2021-12-08  2:22 ` [PATCH 2/2] clk: qcom: dispcc-sdm845: park disp_cc_mdss_mdp_clk_src Dmitry Baryshkov
  0 siblings, 2 replies; 17+ messages in thread
From: Dmitry Baryshkov @ 2021-12-08  2:22 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Stephen Boyd, Michael Turquette, Taniya Das
  Cc: linux-arm-msm, linux-clk

This is an alternative approach to the issue that Bjorn proposed in
https://lore.kernel.org/linux-arm-msm/20211203035436.3505743-1-bjorn.andersson@linaro.org/

The disp_cc_mdss_mdp_clk_src clock can become stuck during the boot
process for reasons other than just disabling the clocks in
clock_disable_unused phase. For example other drivers during the boot
procedure can toggle parent of the clock, disabling it for some reason.

So instead of enforcing clock parking during the clock_disable_unused,
park them during the driver probe. This can break the splash screen
display, however loosing the splash screen for few seconds is considered
to be lesser evil compared to possibly loosing the display at all
(because the RCG gets stuck).

----------------------------------------------------------------
Dmitry Baryshkov (2):
      clk: qcom: add API to safely park RCG2 sources
      clk: qcom: dispcc-sdm845: park disp_cc_mdss_mdp_clk_src

 drivers/clk/qcom/clk-rcg.h       |  2 ++
 drivers/clk/qcom/clk-rcg2.c      | 34 ++++++++++++++++++++++++++++++++++
 drivers/clk/qcom/dispcc-sdm845.c |  3 +++
 3 files changed, 39 insertions(+)


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-12-16  4:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-08  2:22 [PATCH 0/2] clk: qcom: fix disp_cc_mdss_mdp_clk_src issues on sdm845 Dmitry Baryshkov
2021-12-08  2:22 ` [PATCH 1/2] clk: qcom: add API to safely park RCG2 sources Dmitry Baryshkov
2021-12-09  8:37   ` Stephen Boyd
2021-12-09 18:36     ` Bjorn Andersson
2021-12-15 21:14       ` Dmitry Baryshkov
2021-12-16  4:24         ` Bjorn Andersson
2021-12-08  2:22 ` [PATCH 2/2] clk: qcom: dispcc-sdm845: park disp_cc_mdss_mdp_clk_src Dmitry Baryshkov
2021-12-09  8:37   ` Stephen Boyd
2021-12-09 14:11   ` Robert Foss
2021-12-09 14:18     ` Dmitry Baryshkov
2021-12-09 18:40   ` Bjorn Andersson
2021-12-09 21:04     ` Dmitry Baryshkov
2021-12-15 22:17     ` Dmitry Baryshkov
2021-12-16  1:38       ` Stephen Boyd
2021-12-16  3:34         ` Dmitry Baryshkov
2021-12-16  4:10           ` Stephen Boyd
2021-12-16  4:01       ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).