[PATCH linux-next 09/33] clk: mediatek: Reserve missing MT2701 audsys clock IDs

From: Akari Tsuyukusa

Date: Sat Nov 28 2026 - 20:48:08 EST


Migrating the MT2701 audsys clock driver to the common probe/remove
helpers stopped using CLK_AUD_NR for onecell data allocation, causing
out-of-bounds registrations due to missing dummy slots for
unimplemented CLK_AUD_ASRC11 and CLK_AUD_ASRC12 clock IDs.

Reserve their IDs with dummy clocks in the MT2701 audsys clock driver.

Fixes: 0f69a423c458 ("clk: mediatek: Switch to mtk_clk_simple_probe() where possible")
Signed-off-by: Akari Tsuyukusa <akkun11.open@xxxxxxxxx>
---
drivers/clk/mediatek/clk-mt2701-aud.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/clk/mediatek/clk-mt2701-aud.c b/drivers/clk/mediatek/clk-mt2701-aud.c
index 533d35614661..54659bc2e3d6 100644
--- a/drivers/clk/mediatek/clk-mt2701-aud.c
+++ b/drivers/clk/mediatek/clk-mt2701-aud.c
@@ -82,6 +82,8 @@ static const struct mtk_gate audio_clks[] = {
GATE_AUDIO1(CLK_AUD_ASRCI2, "audio_asrci2", "asm_h_sel", 13),
GATE_AUDIO1(CLK_AUD_ASRCO1, "audio_asrco1", "asm_h_sel", 14),
GATE_AUDIO1(CLK_AUD_ASRCO2, "audio_asrco2", "asm_h_sel", 15),
+ GATE_DUMMY(CLK_AUD_ASRC11, "audio_asrc11_dummy"),
+ GATE_DUMMY(CLK_AUD_ASRC12, "audio_asrc12_dummy"),
GATE_DUMMY(CLK_AUD_HDMIRX, "audio_hdmirx_dummy"),
GATE_AUDIO1(CLK_AUD_INTDIR, "audio_intdir", "intdir_sel", 20),
GATE_AUDIO1(CLK_AUD_A1SYS, "audio_a1sys", "aud_mux1_sel", 21),
--
2.56.0