Prechádzať zdrojové kódy

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 <[email protected]>
Vatsal Bucha 5 rokov pred
rodič
commit
6bb56f382b
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      dsp/avtimer.c

+ 1 - 0
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);
 			}
 		}
 	}