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

Commit 33e953b8 authored by Mao Jinlong's avatar Mao Jinlong
Browse files

soc: jtagv8: Correct the sequence of restoring the etm registers



TRCPROCSELR is the second register to restore instead of the first
one. Correct the sequence to make the restore function work.

Change-Id: Ic2b3bf936a4754d9eeed3318f4ff708b298ad4d5
Signed-off-by: default avatarMao Jinlong <jinlmao@codeaurora.org>
parent 0afd6cbe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2020, The Linux Foundation. All rights reserved.
 *
 */

@@ -416,7 +416,7 @@ static inline void etm_mm_restore_state(struct etm_ctx *etmdata)
			etm_os_lock(etmdata);
		}

		if (!(etmdata->state[0] & BIT(0))) {
		if (!(etmdata->state[i++] & BIT(0))) {
			etm_os_unlock(etmdata);
			break;
		}