linux-mediatek.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/5] clk: mediatek: mt2701-vdec: fix conversion to mtk_clk_simple_probe
@ 2024-12-15 22:13 Daniel Golle
  2024-12-15 22:14 ` [PATCH 2/5] clk: mediatek: mt2701-aud: " Daniel Golle
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Daniel Golle @ 2024-12-15 22:13 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Matthias Brugger,
	AngeloGioacchino Del Regno, Alexandre Mergnat, Geert Uytterhoeven,
	Daniel Golle, Uwe Kleine-König, Miles Chen, Chen-Yu Tsai,
	Frank Wunderlich, John Crispin, linux-clk, linux-kernel,
	linux-arm-kernel, linux-mediatek, stable

Commit 973d1607d936 ("clk: mediatek: mt2701: use mtk_clk_simple_probe to
simplify driver") broke DT bindings as the highest index was reduced by
1 because the id count starts from 1 and not from 0.

Fix this, like for other drivers which had the same issue, by adding a
dummy clk at index 0.

Fixes: 973d1607d936 ("clk: mediatek: mt2701: use mtk_clk_simple_probe to simplify driver")
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
 drivers/clk/mediatek/clk-mt2701-vdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/mediatek/clk-mt2701-vdec.c b/drivers/clk/mediatek/clk-mt2701-vdec.c
index 94db86f8d0a4..5299d92f3aba 100644
--- a/drivers/clk/mediatek/clk-mt2701-vdec.c
+++ b/drivers/clk/mediatek/clk-mt2701-vdec.c
@@ -31,6 +31,7 @@ static const struct mtk_gate_regs vdec1_cg_regs = {
 	GATE_MTK(_id, _name, _parent, &vdec1_cg_regs, _shift, &mtk_clk_gate_ops_setclr_inv)
 
 static const struct mtk_gate vdec_clks[] = {
+	GATE_DUMMY(CLK_DUMMY, "vdec_dummy"),
 	GATE_VDEC0(CLK_VDEC_CKGEN, "vdec_cken", "vdec_sel", 0),
 	GATE_VDEC1(CLK_VDEC_LARB, "vdec_larb_cken", "mm_sel", 0),
 };
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-12-17 20:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-15 22:13 [PATCH 1/5] clk: mediatek: mt2701-vdec: fix conversion to mtk_clk_simple_probe Daniel Golle
2024-12-15 22:14 ` [PATCH 2/5] clk: mediatek: mt2701-aud: " Daniel Golle
2024-12-16 14:10   ` AngeloGioacchino Del Regno
2024-12-17 20:16   ` Stephen Boyd
2024-12-15 22:14 ` [PATCH 3/5] clk: mediatek: mt2701-bdp: add missing dummy clk Daniel Golle
2024-12-16 14:10   ` AngeloGioacchino Del Regno
2024-12-17 20:16   ` Stephen Boyd
2024-12-15 22:14 ` [PATCH 4/5] clk: mediatek: mt2701-mm: " Daniel Golle
2024-12-16 14:10   ` AngeloGioacchino Del Regno
2024-12-17 20:16   ` Stephen Boyd
2024-12-15 22:14 ` [PATCH 5/5] clk: mediatek: mt2701-img: " Daniel Golle
2024-12-16 14:10   ` AngeloGioacchino Del Regno
2024-12-17 20:16   ` Stephen Boyd
2024-12-16 14:10 ` [PATCH 1/5] clk: mediatek: mt2701-vdec: fix conversion to mtk_clk_simple_probe AngeloGioacchino Del Regno
2024-12-17 20:16 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).