Skip to content

Commit 83245e7

Browse files
John Madieubroonie
authored andcommitted
ASoC: rsnd: src: Add missing scu_supply clock to suspend/resume
scu_supply is enabled alongside scu and scu_x2 during normal SRC operation, but rsnd_src_suspend() and rsnd_src_resume() only disable and re-enable scu and scu_x2. The supply clock is left enabled across a system suspend and its prepare/enable refcount becomes unbalanced after a suspend/resume cycle. Disable scu_supply in rsnd_src_suspend() and re-enable it in rsnd_src_resume() so the SRC clocks are managed consistently across system PM transitions. Fixes: ef19ecf ("ASoC: rsnd: Add system suspend/resume support") Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Link: https://patch.msgid.link/20260630175329.4145703-1-john.madieu.xa@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent bf93bd4 commit 83245e7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • sound/soc/renesas/rcar

sound/soc/renesas/rcar/src.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ void rsnd_src_suspend(struct rsnd_priv *priv)
850850

851851
clk_disable_unprepare(src_ctrl->scu_x2);
852852
clk_disable_unprepare(src_ctrl->scu);
853+
clk_disable_unprepare(src_ctrl->scu_supply);
853854
}
854855

855856
void rsnd_src_resume(struct rsnd_priv *priv)
@@ -861,6 +862,7 @@ void rsnd_src_resume(struct rsnd_priv *priv)
861862
if (!src_ctrl)
862863
return;
863864

865+
clk_prepare_enable(src_ctrl->scu_supply);
864866
clk_prepare_enable(src_ctrl->scu);
865867
clk_prepare_enable(src_ctrl->scu_x2);
866868

0 commit comments

Comments
 (0)