Skip to content

Refactor infracfg drivers to be able to use common helpers

Akari Tsuyukusa linux-arm-kernel linux-clk linux-mediatek lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3clk: mediatek: clk-mtk: Add cpumux support to common probe/remove helpersdrivers/clk/mediatek/clk-mtk.c drivers/clk/mediatek/clk-mtk.h+19 -11 reply
2/3clk: mediatek: mt6795-infracfg: Switch to common probe/remove helpersdrivers/clk/mediatek/clk-mt6795-infracfg.c+11 -590 replies
3/3clk: mediatek: mt7622-infracfg: Switch to common probe/remove helpersdrivers/clk/mediatek/clk-mt7622-infracfg.c+11 -590 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchChen-Yu Tsai
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Refactor infracfg drivers to be able to use common helpers

This series extends the MediaTek clock common framework to support cpumux and converts existing infracfg drivers to use the common helpers.

Currently, many MediaTek clock drivers implement their own probe and remove functions, leading to significant code duplication. By extending the mtk_clk_desc structure and the __mtk_clk_simple_probe/remove functions, we can handle these sequences in a unified way.

Summary of changes:
- Patch 1: Add cpumux support to common mtk_clk_simple_probe/remove.
- Patch 2: Convert MT6795 infracfg driver to the common helpers.
- Patch 3: Convert MT7622 infracfg driver to the common helpers.

Akari Tsuyukusa (3):
clk: mediatek: clk-mtk: Add cpumux support to common probe/remove
helpers
clk: mediatek: mt6795-infracfg: Switch to common probe/remove helpers
clk: mediatek: mt7622-infracfg: Switch to common probe/remove helpers

 drivers/clk/mediatek/clk-mt6795-infracfg.c | 70 ++++------------------
 drivers/clk/mediatek/clk-mt7622-infracfg.c | 70 ++++------------------
 drivers/clk/mediatek/clk-mtk.c             | 18 +++++-
 drivers/clk/mediatek/clk-mtk.h             |  2 +
 4 files changed, 41 insertions(+), 119 deletions(-)
Signature · 1 line
2.52.0