[PATCH v5 3/6] clk: cix: Preserve Sky1 AUDSS interrupt and reset context

Jelly Jia Jelly.Jia at cixtech.com
Thu Nov 19 21:35:26 PST 2026


The AUDSS CRU saves its clock configuration before runtime suspend, but
the save list does not include the AP interrupt gates or software reset
state. If that state is lost across a CRU power transition, restoring
the clocks alone does not restore the configuration of its consumers.

Add INFO_AP_IRQC and INFO_SW_RESETN to the existing save and restore
list so the interrupt gate and reset configuration is preserved with
the rest of the CRU context.

Signed-off-by: Jelly Jia <Jelly.Jia at cixtech.com>
---
 drivers/clk/cix/clk-sky1-audss.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/clk/cix/clk-sky1-audss.c b/drivers/clk/cix/clk-sky1-audss.c
index e096b8121df3..1da86f6def4f 100644
--- a/drivers/clk/cix/clk-sky1-audss.c
+++ b/drivers/clk/cix/clk-sky1-audss.c
@@ -18,7 +18,9 @@
 #define INFO_CLK_GATE				0x10
 #define INFO_CLK_DIV				0x14
 #define INFO_CLK_MUX				0x18
+#define INFO_AP_IRQC				0x54
 #define INFO_MCLK				0x70
+#define INFO_SW_RESETN				0x78
 
 #define SKY1_AUDSS_CLK_PARENTS_CNT		4
 #define SKY1_AUDSS_NUM_CLKS			(CLK_MCLK4 + 1)
@@ -28,7 +30,9 @@ static u32 sky1_reg_save[][2] = {
 	{ INFO_CLK_GATE,  0 },
 	{ INFO_CLK_DIV, 0 },
 	{ INFO_CLK_MUX, 0 },
+	{ INFO_AP_IRQC, 0 },
 	{ INFO_MCLK, 0 },
+	{ INFO_SW_RESETN, 0 },
 };
 
 static const char * const sky1_audss_clk_names[SKY1_AUDSS_CLK_PARENTS_CNT] = {
-- 
2.54.0




More information about the linux-arm-kernel mailing list