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

Commit 5f189fcf authored by Mao Jinlong's avatar Mao Jinlong Committed by Gerrit - the friendly Code Review server
Browse files

coresight-etm4x: Don't set LPOVERRIDE bit when tupwr-disable is true



Don't set LPOVERRIDE bit when tupwr-disable is true to avoid the cpu hang
issue.

Change-Id: Ie12b6faa3a39e35fac1566690771321a79e99bae
Signed-off-by: default avatarMao Jinlong <jinlmao@codeaurora.org>
parent 090c2c57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -386,7 +386,7 @@ static ssize_t mode_store(struct device *dev,

	/* bit[12], Low-power state behavior override bit */
	if ((config->mode & ETM_MODE_LPOVERRIDE) &&
	    (drvdata->lpoverride == true))
	    (drvdata->lpoverride == true) && !drvdata->tupwr_disable)
		config->eventctrl1 |= BIT(12);
	else
		config->eventctrl1 &= ~BIT(12);