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

Commit 05d1cbfd authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dsp: avtimer: Add adsp ready check before accessing avtimer registers"

parents 212f9e9b 156a57fb
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -335,6 +335,11 @@ int avcs_core_query_timer_offset(int64_t *av_offset, int32_t clock_id)
	uint64_t avtimer_tick_temp, avtimer_tick, sys_time = 0;
	struct timespec ts;

	if (!atomic_read(&avtimer.adsp_ready)) {
		pr_debug("%s:In SSR, return\n", __func__);
		return -ENETRESET;
	}

	if ((avtimer.p_avtimer_lsw == NULL) ||
	    (avtimer.p_avtimer_msw == NULL)) {
		return -EINVAL;