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: Mao Jinlong <jinlmao@codeaurora.org>
This commit is contained in:
Mao Jinlong 2020-01-01 18:37:56 +08:00 committed by Gerrit - the friendly Code Review server
parent c5d20367bc
commit dc5dfae44f

View File

@ -383,7 +383,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);