From: Miles Chen <miles.chen@mediatek.com>
To: Matthias Brugger <matthias.bgg@gmail.com>
Cc: AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Chen-Yu Tsai <wenst@chromium.org>,
Chun-Jie Chen <chun-jie.chen@mediatek.com>,
Miles Chen <miles.chen@mediatek.com>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>
Subject: [PATCH 0/8] clk: mediatek: use mtk_clk_simple_probe to simplify driver
Date: Tue, 24 May 2022 00:00:42 +0800 [thread overview]
Message-ID: <20220523160053.1922-1-miles.chen@mediatek.com> (raw)
mtk_clk_simple_probe() was introduced by Chun-Jie in commit
c58cd0e40ffa ("clk: mediatek: Add mtk_clk_simple_probe() to simplify clock providers")
and mtk_clk_simple_remove() was added in commit
commit 2204d96b1919 ("clk: mediatek: Add mtk_clk_simple_remove()")
With mtk_clk_simple_probe and mtk_clk_simple_remove,
we can get rid of defining the same probe function in clk drivers.
mtk_clk_simple_probe and mtk_clk_simple_remove are used in new platforms
now, let's apply them to old SoCs.
The process is quite straightforward:
a. Look up probe functions which can be replaced by mtk_clk_simple_probe()
b. Add mtk_clk_desc and add .data
c. Replace the probe function with mtk_clk_simple_probe and mtk_clk_simple_remove
I tested the series on MT8192 and MT6779.
This patch is based on next-20220523, and it conflicts with the export
function part of [1].
Thanks,
Miles
[1] https://lore.kernel.org/lkml/20220518111652.223727-1-angelogioacchino.delregno@collabora.com/
Miles Chen (8):
clk: mediatek export mtk_clk_simple_probe and mtk_clk_simple_remove
clk: mediatek: mt2701: use mtk_clk_simple_probe to simplify driver
clk: mediatek: mt2712: use mtk_clk_simple_probe to simplify driver
clk: mediatek: mt6765: use mtk_clk_simple_probe to simplify driver
clk: mediatek: mt6779: use mtk_clk_simple_probe to simplify driver
clk: mediatek: mt6797: use mtk_clk_simple_probe to simplify driver
clk: mediatek: mt8183: use mtk_clk_simple_probe to simplify driver
clk: mediatek: mt8192: add mtk_clk_simple_remove
drivers/clk/mediatek/clk-mt2701-bdp.c | 36 +++++++------------
drivers/clk/mediatek/clk-mt2701-img.c | 36 +++++++------------
drivers/clk/mediatek/clk-mt2701-vdec.c | 36 +++++++------------
drivers/clk/mediatek/clk-mt2712-bdp.c | 34 +++++++-----------
drivers/clk/mediatek/clk-mt2712-img.c | 34 +++++++-----------
drivers/clk/mediatek/clk-mt2712-jpgdec.c | 34 +++++++-----------
drivers/clk/mediatek/clk-mt2712-mfg.c | 34 +++++++-----------
drivers/clk/mediatek/clk-mt2712-vdec.c | 34 +++++++-----------
drivers/clk/mediatek/clk-mt2712-venc.c | 34 +++++++-----------
drivers/clk/mediatek/clk-mt6765-audio.c | 34 +++++++-----------
drivers/clk/mediatek/clk-mt6765-cam.c | 33 +++++++----------
drivers/clk/mediatek/clk-mt6765-img.c | 33 +++++++----------
drivers/clk/mediatek/clk-mt6765-mipi0a.c | 34 +++++++-----------
drivers/clk/mediatek/clk-mt6765-mm.c | 33 +++++++----------
drivers/clk/mediatek/clk-mt6765-vcodec.c | 34 +++++++-----------
drivers/clk/mediatek/clk-mt6779-aud.c | 29 +++++++--------
drivers/clk/mediatek/clk-mt6779-cam.c | 29 +++++++--------
drivers/clk/mediatek/clk-mt6779-img.c | 29 +++++++--------
drivers/clk/mediatek/clk-mt6779-ipe.c | 29 +++++++--------
drivers/clk/mediatek/clk-mt6779-mfg.c | 27 +++++++-------
drivers/clk/mediatek/clk-mt6779-vdec.c | 29 +++++++--------
drivers/clk/mediatek/clk-mt6779-venc.c | 29 +++++++--------
drivers/clk/mediatek/clk-mt6797-img.c | 36 +++++++------------
drivers/clk/mediatek/clk-mt6797-vdec.c | 36 +++++++------------
drivers/clk/mediatek/clk-mt6797-venc.c | 36 +++++++------------
drivers/clk/mediatek/clk-mt8183-cam.c | 27 +++++++-------
drivers/clk/mediatek/clk-mt8183-img.c | 27 +++++++-------
drivers/clk/mediatek/clk-mt8183-ipu0.c | 27 +++++++-------
drivers/clk/mediatek/clk-mt8183-ipu1.c | 27 +++++++-------
drivers/clk/mediatek/clk-mt8183-ipu_adl.c | 27 +++++++-------
drivers/clk/mediatek/clk-mt8183-ipu_conn.c | 27 +++++++-------
drivers/clk/mediatek/clk-mt8183-mfgcfg.c | 29 +++++++--------
drivers/clk/mediatek/clk-mt8183-vdec.c | 27 +++++++-------
drivers/clk/mediatek/clk-mt8183-venc.c | 27 +++++++-------
drivers/clk/mediatek/clk-mt8192-cam.c | 1 +
drivers/clk/mediatek/clk-mt8192-img.c | 1 +
.../clk/mediatek/clk-mt8192-imp_iic_wrap.c | 1 +
drivers/clk/mediatek/clk-mt8192-ipe.c | 1 +
drivers/clk/mediatek/clk-mt8192-mdp.c | 1 +
drivers/clk/mediatek/clk-mt8192-mfg.c | 1 +
drivers/clk/mediatek/clk-mt8192-msdc.c | 1 +
drivers/clk/mediatek/clk-mt8192-scp_adsp.c | 1 +
drivers/clk/mediatek/clk-mt8192-vdec.c | 1 +
drivers/clk/mediatek/clk-mt8192-venc.c | 1 +
drivers/clk/mediatek/clk-mtk.c | 2 ++
45 files changed, 432 insertions(+), 647 deletions(-)
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-05-23 16:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-23 16:00 Miles Chen [this message]
2022-05-23 16:00 ` [PATCH 1/8] clk: mediatek export mtk_clk_simple_probe and mtk_clk_simple_remove Miles Chen
2022-05-23 16:05 ` AngeloGioacchino Del Regno
2022-05-24 5:28 ` Miles Chen
2022-05-23 16:00 ` [PATCH 2/8] clk: mediatek: mt2701: use mtk_clk_simple_probe to simplify driver Miles Chen
2022-05-23 16:00 ` [PATCH 3/8] clk: mediatek: mt2712: " Miles Chen
2022-05-23 16:00 ` [PATCH 4/8] clk: mediatek: mt6765: " Miles Chen
2022-05-23 16:00 ` [PATCH 5/8] clk: mediatek: mt6779: " Miles Chen
2022-05-23 16:00 ` [PATCH 6/8] clk: mediatek: mt6797: " Miles Chen
2022-05-23 16:00 ` [PATCH 7/8] clk: mediatek: mt8183: " Miles Chen
2022-05-23 16:00 ` [PATCH 8/8] clk: mediatek: mt8192: add mtk_clk_simple_remove Miles Chen
2022-05-24 6:25 ` Chen-Yu Tsai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220523160053.1922-1-miles.chen@mediatek.com \
--to=miles.chen@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chun-jie.chen@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=wenst@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox