The MediaTek clock driver currently have two ways to indicate the parent
tree that contains the parent clock. This adds to code complexity and
makes it more difficult to know the "right thing" to do in new drivers.

The plan here is to convert all mux clocks to use the more robust option
of using struct mtk_parent to specify parent clocks. Then we can remove
dead and duplicate code and macros.

The conversion to the static const struct mtk_parent arrays was done
by script to minimize the chance of error (and save time).

Signed-off-by: David Lechner <[email protected]>
---
David Lechner (14):
      clk: mediatek: move common PARENT macros to header
      clk: mediatek: mt7622: convert to struct mtk_parent
      clk: mediatek: mt7981: convert to struct mtk_parent
      clk: mediatek: mt7987: convert to struct mtk_parent
      clk: mediatek: mt7988: convert to struct mtk_parent
      clk: mediatek: mt8183: convert to struct mtk_parent
      clk: mediatek: mt8188: convert to struct mtk_parent
      clk: mediatek: mt8195: convert to struct mtk_parent
      clk: mediatek: mt8365: convert to struct mtk_parent
      clk: mediatek: mt8512: convert to struct mtk_parent
      clk: mediatek: mt8516: convert to struct mtk_parent
      clk: mediatek: mt8518: convert to struct mtk_parent
      clk: mediatek: remove CLK_PARENT_MIXED flag
      clk: mediatek: refactor duplicate *_mux_get_rate()

 drivers/clk/mediatek/clk-mt7622.c |   96 +-
 drivers/clk/mediatek/clk-mt7623.c |  153 ++-
 drivers/clk/mediatek/clk-mt7629.c |   75 +-
 drivers/clk/mediatek/clk-mt7981.c |  236 +++--
 drivers/clk/mediatek/clk-mt7986.c |   15 +-
 drivers/clk/mediatek/clk-mt7987.c |   79 +-
 drivers/clk/mediatek/clk-mt7988.c |   83 +-
 drivers/clk/mediatek/clk-mt8183.c |  584 +++++------
 drivers/clk/mediatek/clk-mt8188.c | 1522 +++++++++++++--------------
 drivers/clk/mediatek/clk-mt8189.c |   16 +-
 drivers/clk/mediatek/clk-mt8195.c | 1364 ++++++++++++------------
 drivers/clk/mediatek/clk-mt8365.c |  450 ++++----
 drivers/clk/mediatek/clk-mt8512.c |  620 +++++------
 drivers/clk/mediatek/clk-mt8516.c |  704 ++++++-------
 drivers/clk/mediatek/clk-mt8518.c | 2088 ++++++++++++++++++-------------------
 drivers/clk/mediatek/clk-mtk.c    |  104 +-
 drivers/clk/mediatek/clk-mtk.h    |   59 +-
 17 files changed, 4121 insertions(+), 4127 deletions(-)
---
base-commit: c0ca147ac6228949a6d6497531c9f2f4a0dc6c67
change-id: 20260302-clk-mtk-unify-mux-parents-1bf35aeabf00
prerequisite-message-id: 
<[email protected]>
prerequisite-patch-id: 81f2dd4fd7c1632736c08180d6b9f6aef5fe1e7f
prerequisite-patch-id: 0414664c8d24f8303d238aa1c4389072ba9f8613
prerequisite-patch-id: b63492590bec532b0347be3b495cd1779b0ad3ce
prerequisite-patch-id: 9e03fea677d2d9b5ae6860e700f62b27db270e64
prerequisite-patch-id: 3d5661f9e55292a30f57617848a7b10e67844402
prerequisite-patch-id: ccbc73b2bc1dc41beb295604088d63773cea15ef
prerequisite-patch-id: aa76b6b028374f20551955eafe56a1e0c1daa75d
prerequisite-message-id: 
<20260223-clk-mtk-remove-clk-bypass-xtal-flag-v1-0-a7dc97bc2...@baylibre.com>
prerequisite-patch-id: 15ac11765ddddcf378e0e227a9fb5876636aa8e6
prerequisite-patch-id: 90b4781a99ea5eb40eb6c943dee86dd8a9fabe06
prerequisite-patch-id: 80d270c12e6eb32a3ba7898566022bb2be3f584c
prerequisite-patch-id: 7c5b9d822900b1a91e772e55561fcb093a9387e2
prerequisite-patch-id: 5a520115a1494b9d6ff6190b7209816f7c3aa4e0
prerequisite-patch-id: 7e30fd6d0049029a97e21473932bfde6abfc584b
prerequisite-patch-id: 0700411359ab89ebd24c4c3d17a5864e41289547

Best regards,
-- 
David Lechner <[email protected]>

Reply via email to