All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Revert "clk: qcom: dispcc-sm8250: Enable parents for pixel clocks"
@ 2026-07-01  0:11 Vladimir Zapolskiy
  2026-07-20 13:09 ` Vladimir Zapolskiy
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Vladimir Zapolskiy @ 2026-07-01  0:11 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney,
	Val Packett, Marek Szyprowski
  Cc: linux-arm-msm, linux-clk

This reverts commit acf7a91d0b0e9e3ef374944021de62062125b7e4.

The commit causes quite severe problems in runtime due to the introduced
cyclic clock dependency:

* dsi@ae9400 platform device and its probe depends on dispcc clocks,
* the reverted commit links dispcc clocks enablement to mdss_dsiX_phy clocks,
* at this stage DSI PHY PLL cannot be locked to complete driver initialization,
  the parent clocks for DISPCC provided mdss_pclkX clocks can not be enabled.

On RB5 board with no connected display panel on boot I get this error report:

  DSI PLL(0) lock failed, status=0x00000000
  PLL(0) lock failed
  dsi0_phy_pll_out_dsiclk already disabled
  WARNING: drivers/clk/clk.c:1188 at clk_core_disable+0xa4/0xac, CPU#4: kworker/u32:1/61
  ...
  dsi0_phy_pll_out_dsiclk already unprepared
  WARNING: drivers/clk/clk.c:1047 at clk_core_unprepare+0xe4/0x104, CPU#4: kworker/u32:1/61
  ...
  Tainted: [W]=WARN

The problem has been already reported and discussed before [1], the original
commit was done for "preventing potential stability issues" reason, and this
time fixing a potential issue introduced the actual one unfortunately.

[1] https://lore.kernel.org/linux-arm-msm/2f5b98a4-80a6-4611-9615-ab0202a8c455@samsung.com/

Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
---
 drivers/clk/qcom/dispcc-sm8250.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/qcom/dispcc-sm8250.c b/drivers/clk/qcom/dispcc-sm8250.c
index e59cdadd5647..cdfdb2cfb02b 100644
--- a/drivers/clk/qcom/dispcc-sm8250.c
+++ b/drivers/clk/qcom/dispcc-sm8250.c
@@ -578,7 +578,7 @@ static struct clk_rcg2 disp_cc_mdss_pclk0_clk_src = {
 		.name = "disp_cc_mdss_pclk0_clk_src",
 		.parent_data = disp_cc_parent_data_6,
 		.num_parents = ARRAY_SIZE(disp_cc_parent_data_6),
-		.flags = CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE,
+		.flags = CLK_SET_RATE_PARENT,
 		.ops = &clk_pixel_ops,
 	},
 };
@@ -592,7 +592,7 @@ static struct clk_rcg2 disp_cc_mdss_pclk1_clk_src = {
 		.name = "disp_cc_mdss_pclk1_clk_src",
 		.parent_data = disp_cc_parent_data_6,
 		.num_parents = ARRAY_SIZE(disp_cc_parent_data_6),
-		.flags = CLK_SET_RATE_PARENT | CLK_OPS_PARENT_ENABLE,
+		.flags = CLK_SET_RATE_PARENT,
 		.ops = &clk_pixel_ops,
 	},
 };
-- 
2.53.0


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

end of thread, other threads:[~2026-08-11  8:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01  0:11 [PATCH] Revert "clk: qcom: dispcc-sm8250: Enable parents for pixel clocks" Vladimir Zapolskiy
2026-07-20 13:09 ` Vladimir Zapolskiy
2026-07-20 15:00 ` Dmitry Baryshkov
2026-07-20 18:21   ` Vladimir Zapolskiy
2026-07-20 20:54     ` Dmitry Baryshkov
2026-07-20 22:39       ` Vladimir Zapolskiy
2026-07-21 23:30         ` Dmitry Baryshkov
2026-07-22  9:28           ` Vladimir Zapolskiy
2026-07-22 12:08             ` Dmitry Baryshkov
2026-08-11  8:48 ` Robert Eckelmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.