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

Commit 6bb56f38 authored by Vatsal Bucha's avatar Vatsal Bucha Committed by Gerrit - the friendly Code Review server
Browse files

dsp: Fix NOC error from lpass on accessing LPASS_AVTIMER_LSB



avcs_core_query_timer_offset can be called from external ioctl
while avtimer clk count is 0. This can result in a NOC while
reading avtimer register. Reset adsp_ready if avtimer clk count
is 0 to resolve the issue.

Change-Id: I3d088c306f4895a2fee68f2ac95ea6ad96094ea1
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent 8393ea84
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -271,6 +271,7 @@ int avcs_core_disable_power_collapse(int enable)
				rc = avcs_core_disable_avtimer(
				avtimer.timer_handle);
				avtimer.timer_handle = 0;
				atomic_set(&avtimer.adsp_ready, 0);
			}
		}
	}