Skip to content

Commit f051c4e

Browse files
quic-kdybciogregkh
authored andcommitted
clk: qcom: dispcc[01]-sa8775p: Fix DSI byte clock rate setting
[ Upstream commit 2851b6c ] The clock tree for byte_clk_src is as follows: ┌──────byte0_clk_src─────┐ │ │ byte0_clk byte0_div_clk_src │ byte0_intf_clk If both of its direct children have CLK_SET_RATE_PARENT with different requests, byte0_clk_src (and its parent) will be reconfigured. In this case, byte0_intf should strictly follow the rate of byte0_clk (with some adjustments based on PHY mode). Remove CLK_SET_RATE_PARENT from byte0_div_clk_src to avoid this issue. Fixes: e700bfd ("clk: qcom: Add support for Display clock Controllers on SA8775P") Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260304-topic-dsi_byte_fixup-v1-5-b79b29f83176@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent cad73e3 commit f051c4e

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/clk/qcom/dispcc0-sa8775p.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,6 @@ static struct clk_regmap_div mdss_0_disp_cc_mdss_byte0_div_clk_src = {
591591
&mdss_0_disp_cc_mdss_byte0_clk_src.clkr.hw,
592592
},
593593
.num_parents = 1,
594-
.flags = CLK_SET_RATE_PARENT,
595594
.ops = &clk_regmap_div_ops,
596595
},
597596
};
@@ -606,7 +605,6 @@ static struct clk_regmap_div mdss_0_disp_cc_mdss_byte1_div_clk_src = {
606605
&mdss_0_disp_cc_mdss_byte1_clk_src.clkr.hw,
607606
},
608607
.num_parents = 1,
609-
.flags = CLK_SET_RATE_PARENT,
610608
.ops = &clk_regmap_div_ops,
611609
},
612610
};

drivers/clk/qcom/dispcc1-sa8775p.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,6 @@ static struct clk_regmap_div mdss_1_disp_cc_mdss_byte0_div_clk_src = {
591591
&mdss_1_disp_cc_mdss_byte0_clk_src.clkr.hw,
592592
},
593593
.num_parents = 1,
594-
.flags = CLK_SET_RATE_PARENT,
595594
.ops = &clk_regmap_div_ops,
596595
},
597596
};
@@ -606,7 +605,6 @@ static struct clk_regmap_div mdss_1_disp_cc_mdss_byte1_div_clk_src = {
606605
&mdss_1_disp_cc_mdss_byte1_clk_src.clkr.hw,
607606
},
608607
.num_parents = 1,
609-
.flags = CLK_SET_RATE_PARENT,
610608
.ops = &clk_regmap_div_ops,
611609
},
612610
};

0 commit comments

Comments
 (0)