spdif: fix reboot system crash [1/1]
authorjiejing.wang <jiejing.wang@amlogic.com>
Tue, 27 Aug 2019 08:44:32 +0000 (16:44 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 28 Aug 2019 08:45:33 +0000 (01:45 -0700)
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 <jiejing.wang@amlogic.com>
sound/soc/amlogic/auge/spdif.c

index 45f40d8b885d2da45fc960dfe5df86b034004cd7..43b3d62f18eeb334200034432c7862b5117d40de 100644 (file)
@@ -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__);