From c8d013e54a8bf21cf3dd4cfd5df3c5df745793f4 Mon Sep 17 00:00:00 2001 From: jiebing chen Date: Mon, 4 Mar 2024 15:42:14 +0800 Subject: [PATCH] audio: hifi1_pll already unprepared appears pressure test autosuspend [1/1] PD#SWPL-156792 Problem: hifipll already disable when disable spdif clk, there are some warning Solution: need depend on hifipll enable when disable spdif clk Verify: t3x Change-Id: I6b9c53135fe1715c9606a82c2627659f3347a198 Signed-off-by: jiebing chen --- sound/soc/amlogic/auge/spdif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/amlogic/auge/spdif.c b/sound/soc/amlogic/auge/spdif.c index d503acf3d..4fe686383 100644 --- a/sound/soc/amlogic/auge/spdif.c +++ b/sound/soc/amlogic/auge/spdif.c @@ -522,8 +522,7 @@ static int aml_spdif_platform_suspend(struct platform_device *pdev, pm_message_t if (p_spdif->chipinfo->regulator || (p_spdif->suspend_clk_off && !is_pm_s2idle_mode())) { /* warning:parent clk already close */ - if (__clk_is_enabled(clk_get_parent(p_spdif->clk_spdifout)) || - __clk_is_enabled(p_spdif->clk_spdifout)) { + if (__clk_is_enabled(clk_get_parent(p_spdif->clk_spdifout))) { if (!IS_ERR(p_spdif->clk_spdifout)) { while (__clk_is_enabled(p_spdif->clk_spdifout)) clk_disable_unprepare(p_spdif->clk_spdifout);