Skip to contentSkip to conversation

clk: mediatek: set CLK_IGNORE_UNUSED to clock mt8188 adsp audio26m

PATCH RESEND New Macpaul Lin 1 participant 1 message Jan 7

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 clk: mediatek: set CLK_IGNORE_UNUSED to clock mt8188 adsp audio26m

Set CLK_IGNORE_UNUSED flag to clock adsp audio26m to prevent disabling this clock during early boot, as turning it off causes other modules to fail probing and leads to boot failures in ARM SystemReady test cases and the EFI boot process (on Linux Distributions, for example, debian, openSuse, etc.). Without this flag, disabling unused clocks cannot complete properly after adsp_audio26m is turned off.

Fixes 0d2f2cefba64 ("clk: mediatek: Add MT8188 adsp clock support")
---
 drivers/clk/mediatek/clk-mt8188-adsp_audio26m.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/mediatek/clk-mt8188-adsp_audio26m.c +2 -2
index dcde2187d24a..b9fe66ef4f2e 100644
@@ -20,8 +20,8 @@ static const struct mtk_gate_regs adsp_audio26m_cg_regs = {
 };
 
 #define GATE_ADSP_FLAGS(_id, _name, _parent, _shift)		\
-	GATE_MTK(_id, _name, _parent, &adsp_audio26m_cg_regs, _shift,		\
-		&mtk_clk_gate_ops_no_setclr)
+	GATE_MTK_FLAGS(_id, _name, _parent, &adsp_audio26m_cg_regs, _shift,	\
+		&mtk_clk_gate_ops_no_setclr, CLK_IGNORE_UNUSED)
 
 static const struct mtk_gate adsp_audio26m_clks[] = {
 	GATE_ADSP_FLAGS(CLK_AUDIODSP_AUDIO26M, "audiodsp_audio26m", "clk26m", 3),
Signature · 1 line
2.45.2