Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: dispcc-sm6350: Add CLK_OPS_PARENT_ENABLE to pixel&byte src

Add the CLK_OPS_PARENT_ENABLE flag to pixel and byte clk srcs to
ensure set_rate can succeed.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Fixes: 837519775f1d ("clk: qcom: Add display clock controller driver for SM6350")
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221010155546.73884-1-konrad.dybcio@somainline.org

authored by

Konrad Dybcio and committed by
Bjorn Andersson
92039e8c 6db4d77f

+2 -2
+2 -2
drivers/clk/qcom/dispcc-sm6350.c
··· 306 306 .name = "disp_cc_mdss_pclk0_clk_src", 307 307 .parent_data = disp_cc_parent_data_5, 308 308 .num_parents = ARRAY_SIZE(disp_cc_parent_data_5), 309 - .flags = CLK_SET_RATE_PARENT | CLK_GET_RATE_NOCACHE, 309 + .flags = CLK_SET_RATE_PARENT | CLK_GET_RATE_NOCACHE | CLK_OPS_PARENT_ENABLE, 310 310 .ops = &clk_pixel_ops, 311 311 }, 312 312 }; ··· 385 385 &disp_cc_mdss_byte0_clk_src.clkr.hw, 386 386 }, 387 387 .num_parents = 1, 388 - .flags = CLK_SET_RATE_PARENT | CLK_GET_RATE_NOCACHE, 388 + .flags = CLK_SET_RATE_PARENT | CLK_GET_RATE_NOCACHE | CLK_OPS_PARENT_ENABLE, 389 389 .ops = &clk_branch2_ops, 390 390 }, 391 391 },