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: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
Vatsal Bucha
2019-10-23 17:29:29 +05:30
committed by Gerrit - the friendly Code Review server
parent 8393ea841a
commit 6bb56f382b

View File

@@ -271,6 +271,7 @@ int avcs_core_disable_power_collapse(int enable)
rc = avcs_core_disable_avtimer( rc = avcs_core_disable_avtimer(
avtimer.timer_handle); avtimer.timer_handle);
avtimer.timer_handle = 0; avtimer.timer_handle = 0;
atomic_set(&avtimer.adsp_ready, 0);
} }
} }
} }