]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
clk: mediatek: clk-mux: Do not pass flags to clk_mux_determine_rate_flags()
authorChen-Yu Tsai <wenst@chromium.org>
Mon, 25 Aug 2025 15:09:31 +0000 (23:09 +0800)
committerStephen Boyd <sboyd@kernel.org>
Sun, 21 Sep 2025 16:32:54 +0000 (09:32 -0700)
The `flags` in |struct mtk_mux| are core clk flags, not mux clk flags.
Passing one to the other is wrong.

Since there aren't any actual users adding CLK_MUX_* flags, just drop it
for now.

Fixes: b05ea3314390 ("clk: mediatek: clk-mux: Add .determine_rate() callback")
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mux.c

index 60990296450bbb46f262fd1bc9effa4d13758acb..9a12e58230bed8928d915392d551362d417d925a 100644 (file)
@@ -146,9 +146,7 @@ static int mtk_clk_mux_set_parent_setclr_lock(struct clk_hw *hw, u8 index)
 static int mtk_clk_mux_determine_rate(struct clk_hw *hw,
                                      struct clk_rate_request *req)
 {
-       struct mtk_clk_mux *mux = to_mtk_clk_mux(hw);
-
-       return clk_mux_determine_rate_flags(hw, req, mux->data->flags);
+       return clk_mux_determine_rate_flags(hw, req, 0);
 }
 
 const struct clk_ops mtk_mux_clr_set_upd_ops = {