]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: qcom: dispcc-sm4450: Fix DSI byte clock rate setting
authorKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Wed, 4 Mar 2026 13:48:30 +0000 (14:48 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 4 Mar 2026 16:24:54 +0000 (10:24 -0600)
commit7bc48fcdf9e77bf68ef04af015d50df2a9acac00
treef6b75377c6d1b5909723979f9dcfaf7547d90f3f
parentdd5b76257b4048151006620c9895e2f5f0d997eb
clk: qcom: dispcc-sm4450: Fix DSI byte clock rate setting

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: 76f05f1ec766 ("clk: qcom: Add DISPCC driver support for SM4450")
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-4-b79b29f83176@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/dispcc-sm4450.c