From b8e5a27344d8abde31eae1dd80ad7314b6ef88b0 Mon Sep 17 00:00:00 2001 From: "jiejing.wang" Date: Tue, 27 Aug 2019 16:44:32 +0800 Subject: [PATCH] spdif: fix reboot system crash [1/1] PD#SWPL-13288 Problem: reboot system crash Solution: when shutdown don't disable sysclk Verify: verify by x301 Change-Id: I46f319aeef5ed92e257d3e75728b1a705d981189 Signed-off-by: jiejing.wang --- sound/soc/amlogic/auge/spdif.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/amlogic/auge/spdif.c b/sound/soc/amlogic/auge/spdif.c index 45f40d8..43b3d62 100644 --- a/sound/soc/amlogic/auge/spdif.c +++ b/sound/soc/amlogic/auge/spdif.c @@ -290,7 +290,6 @@ static int aml_spdif_platform_suspend( if (!IS_ERR_OR_NULL(pstate)) pinctrl_select_state(p_spdif->pin_ctl, pstate); } - clk_disable_unprepare(p_spdif->sysclk); aml_spdif_enable(p_spdif->actrl, stream, p_spdif->id, false); pr_info("%s is mute\n", __func__); @@ -309,7 +308,6 @@ static int aml_spdif_platform_resume(struct platform_device *pdev) if (!IS_ERR_OR_NULL(state)) pinctrl_select_state(p_spdif->pin_ctl, state); } - clk_prepare_enable(p_spdif->sysclk); aml_spdif_enable(p_spdif->actrl, stream, p_spdif->id, true); pr_info("%s is unmute\n", __func__); @@ -329,7 +327,6 @@ static void aml_spdif_platform_shutdown(struct platform_device *pdev) if (!IS_ERR_OR_NULL(pstate)) pinctrl_select_state(p_spdif->pin_ctl, pstate); } - clk_disable_unprepare(p_spdif->sysclk); aml_spdif_enable(p_spdif->actrl, stream, p_spdif->id, false); pr_info("%s is mute\n", __func__); -- 2.7.4