From: jiejing.wang Date: Tue, 27 Aug 2019 08:44:32 +0000 (+0800) Subject: spdif: fix reboot system crash [1/1] X-Git-Tag: hardkernel-4.9.236-104~719 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8e5a27344d8abde31eae1dd80ad7314b6ef88b0;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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__);