]> 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)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:37 +0000 (07:20 -0500)
[ Upstream commit 4aca7e92023cac5018b4053bae324450f884c937 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/meson/s4-peripherals.c

index 6d69b132d1e1f5950d73757c45b920c9c9052344..bab4f5700de473fe2524669091b158f443e9b951 100644 (file)
@@ -1106,7 +1106,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,
        },
 };
 
@@ -1122,7 +1121,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,
        },
 };
 
@@ -1138,7 +1136,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,
        },
 };
 
@@ -1169,7 +1166,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,
        },
 };