[PATCH 13/14] clk: mediatek: remove CLK_PARENT_MIXED flag
Macpaul Lin (林智斌)
Macpaul.Lin at mediatek.com
Thu Mar 5 15:00:59 CET 2026
On Mon, 2026-03-02 at 18:03 -0600, David Lechner wrote:
> Remove CLK_PARENT_MIXED and all dead code paths related to it.
>
> All mux clocks have been converted to use struct mtk_parent (the
> parent_flags field of the parent/parent_flags union). Use of this
> struct was indicated by CLK_PARENT_MIXED. Now, this is always the
> case
> and we can drop the flag and the union. All MUX_MIXED* macros are
> change to use the equivalent MUX* macros since we no longer need to
> set the flag.
>
> Signed-off-by: David Lechner <dlechner at baylibre.com>
> ---
> drivers/clk/mediatek/clk-mt7622.c | 79 +++++++------
> drivers/clk/mediatek/clk-mt7623.c | 147 ++++++++++++------------
> drivers/clk/mediatek/clk-mt7629.c | 71 ++++++------
> drivers/clk/mediatek/clk-mt7981.c | 9 +-
> drivers/clk/mediatek/clk-mt7986.c | 10 +-
> drivers/clk/mediatek/clk-mt7987.c | 8 +-
> drivers/clk/mediatek/clk-mt7988.c | 9 +-
> drivers/clk/mediatek/clk-mt8183.c | 84 +++++++-------
> drivers/clk/mediatek/clk-mt8188.c | 182 +++++++++++++++-------------
> --
> drivers/clk/mediatek/clk-mt8189.c | 12 +-
> drivers/clk/mediatek/clk-mt8195.c | 232 +++++++++++++++++++---------
> ----------
> drivers/clk/mediatek/clk-mt8365.c | 86 +++++++-------
> drivers/clk/mediatek/clk-mt8512.c | 90 +++++++--------
> drivers/clk/mediatek/clk-mt8516.c | 86 +++++++-------
> drivers/clk/mediatek/clk-mt8518.c | 118 +++++++++----------
> drivers/clk/mediatek/clk-mtk.c | 66 +++--------
> drivers/clk/mediatek/clk-mtk.h | 52 +--------
> 17 files changed, 632 insertions(+), 709 deletions(-)
>
[snip...]
Reviewed-by: Macpaul Lin <macpaul.lin at mediatek.com>
Thanks,
Macpaul Lin
More information about the U-Boot
mailing list