Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b273c826 authored by Meng Wang's avatar Meng Wang Committed by Gerrit - the friendly Code Review server
Browse files

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



SSR notification may not come to swr master control
in time and cause swrm_runtime_resume tries to access
SWR registers. Update the logic to return when requesting
hw vote fails.

Change-Id: Ia85e9ce540ff88d16e8e73c48bab26fb277b86bb
Signed-off-by: default avatarMeng Wang <mengw@codeaurora.org>
parent c285d080
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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",