]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: amlogic: remove potentially unsafe flags from S4 video clocks
authorChuan Liu <chuan.liu@amlogic.com>
Fri, 19 Sep 2025 05:59:01 +0000 (13:59 +0800)
committerJerome Brunet <jbrunet@baylibre.com>
Mon, 15 Dec 2025 09:56:08 +0000 (10:56 +0100)
The video clocks enci, encp, vdac and hdmitx share the same clock
source. Adding CLK_SET_RATE_PARENT to the mux may unintentionally change
the shared parent clock, which could affect other video clocks.

Signed-off-by: Chuan Liu <chuan.liu@amlogic.com>
Link: https://lore.kernel.org/r/20250919-add_video_clk-v6-3-fe223161fb3f@amlogic.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/s4-peripherals.c

index aa500ea8ef9c7e792821cebd7f13802358a44b38..ba41fcd9058811db71b2c2fee1a5a538833fc2a4 100644 (file)
@@ -1107,7 +1107,6 @@ static struct clk_regmap s4_cts_enci_sel = {
                .ops = &clk_regmap_mux_ops,
                .parent_hws = s4_cts_parents,
                .num_parents = ARRAY_SIZE(s4_cts_parents),
-               .flags = CLK_SET_RATE_PARENT,
        },
 };
 
@@ -1123,7 +1122,6 @@ static struct clk_regmap s4_cts_encp_sel = {
                .ops = &clk_regmap_mux_ops,
                .parent_hws = s4_cts_parents,
                .num_parents = ARRAY_SIZE(s4_cts_parents),
-               .flags = CLK_SET_RATE_PARENT,
        },
 };
 
@@ -1154,7 +1152,6 @@ static struct clk_regmap s4_cts_vdac_sel = {
                .ops = &clk_regmap_mux_ops,
                .parent_hws = s4_cts_parents,
                .num_parents = ARRAY_SIZE(s4_cts_parents),
-               .flags = CLK_SET_RATE_PARENT,
        },
 };
 
@@ -1185,7 +1182,6 @@ static struct clk_regmap s4_hdmi_tx_sel = {
                .ops = &clk_regmap_mux_ops,
                .parent_hws = s4_hdmi_tx_parents,
                .num_parents = ARRAY_SIZE(s4_hdmi_tx_parents),
-               .flags = CLK_SET_RATE_PARENT,
        },
 };