From 91437a36eadea5ad0d982381a5f0e666630ca138 Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Tue, 8 Sep 2020 13:13:56 +0800 Subject: [PATCH] soc: swr-mstr: check swrm->state in swr_runtime_suepend in swrm_runtime_suspend, current_state is not updated and causes audio_core_vote is not disabled. Update to check swrm->state to resolve this issue. Change-Id: I2c5be360fe5ddd964d7bc45696e254579aae5392 Signed-off-by: Meng Wang --- soc/swr-mstr-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soc/swr-mstr-ctrl.c b/soc/swr-mstr-ctrl.c index d2f464e676e2..12b263c9c22c 100644 --- a/soc/swr-mstr-ctrl.c +++ b/soc/swr-mstr-ctrl.c @@ -3250,7 +3250,7 @@ static int swrm_runtime_suspend(struct device *dev) swrm->state = SWR_MSTR_DOWN; exit: - if (current_state != SWR_MSTR_UP) { + if (swrm->state != SWR_MSTR_UP) { if (swrm_request_hw_vote(swrm, LPASS_AUDIO_CORE, false)) dev_dbg(dev, "%s:lpass audio hw enable failed\n", __func__);