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

Commit 0e46e340 authored by George Shen's avatar George Shen
Browse files

msm: cvp: Avoids sending random error code to DSP



In case CVP has been powered on when DSP requested it.

Change-Id: Iaef50d37d842c34e1a11916bff63f4ef11949d4c
Signed-off-by: default avatarGeorge Shen <sqiao@codeaurora.org>
parent 0ea391ba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -498,8 +498,10 @@ static int cvp_dsp_thread(void *data)
		switch (me->pending_dsp2cpu_cmd.type) {
		case DSP2CPU_POWERON:
		{
			if (me->state == DSP_READY)
			if (me->state == DSP_READY) {
				cmd.ret = 0;
				break;
			}

			mutex_unlock(&me->lock);
			old_state = me->state;