[PATCH linux-next 14/33] clk: mediatek: Fix MT8173 onecell IDs after common probe migration

Akari Tsuyukusa akkun11.open at gmail.com
Sat Nov 28 17:47:26 PST 2026


Migrating the MT8173 infracfg clock driver to the common probe/remove
helpers stopped using CLK_*_NR for onecell data allocation, causing
a out-of-bounds registration due to an missing dummy slot for ID 0.

Add the missing dummy slot so all clock IDs stay within bounds.

Fixes: 8c9dacbf42f1 ("clk: mediatek: mt8173-infracfg: Switch to common probe/remove helpers")
Signed-off-by: Akari Tsuyukusa <akkun11.open at gmail.com>
---
 drivers/clk/mediatek/clk-mt8173-infracfg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/mediatek/clk-mt8173-infracfg.c b/drivers/clk/mediatek/clk-mt8173-infracfg.c
index fdd994736e83..2feba32da252 100644
--- a/drivers/clk/mediatek/clk-mt8173-infracfg.c
+++ b/drivers/clk/mediatek/clk-mt8173-infracfg.c
@@ -47,6 +47,7 @@ static const struct mtk_fixed_factor infra_divs[] = {
 };
 
 static const struct mtk_gate infra_gates[] = {
+	GATE_DUMMY(CLK_DUMMY, "infra_dummy"),
 	GATE_ICG(CLK_INFRA_DBGCLK, "infra_dbgclk", "axi_sel", 0),
 	GATE_ICG(CLK_INFRA_SMI, "infra_smi", "mm_sel", 1),
 	GATE_ICG(CLK_INFRA_AUDIO, "infra_audio", "aud_intbus_sel", 5),
-- 
2.56.0




More information about the linux-arm-kernel mailing list