Merge "soc: swr-mstr: return when requesting hw vote fails"

This commit is contained in:
qctecmdr 2020-12-16 02:16:31 -08:00 • committed by Gerrit - the friendly Code Review server
commit a78b32247d

View file

@ -3090,6 +3090,12 @@ static int swrm_runtime_resume(struct device *dev)
dev_err(dev, "%s:lpass core hw enable failed\n",
__func__);
hw_core_err = true;
pm_runtime_set_autosuspend_delay(&pdev->dev,
ERR_AUTO_SUSPEND_TIMER_VAL);
if (swrm->req_clk_switch)
swrm->req_clk_switch = false;
mutex_unlock(&swrm->reslock);
return 0;
}
if (swrm_request_hw_vote(swrm, LPASS_AUDIO_CORE, true)) {
dev_err(dev, "%s:lpass audio hw enable failed\n",