From 6bb56f382badff58db1f6440d8006990061a7aaa Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Wed, 23 Oct 2019 17:29:29 +0530 Subject: [PATCH] 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 --- dsp/avtimer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dsp/avtimer.c b/dsp/avtimer.c index ad5e13af3f..e1d032d536 100644 --- a/dsp/avtimer.c +++ b/dsp/avtimer.c @@ -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); } } }