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:
parent
c5d20367bc
commit
dc5dfae44f
@ -383,7 +383,7 @@ static ssize_t mode_store(struct device *dev,
|
|||||||
|
|
||||||
/* bit[12], Low-power state behavior override bit */
|
/* bit[12], Low-power state behavior override bit */
|
||||||
if ((config->mode & ETM_MODE_LPOVERRIDE) &&
|
if ((config->mode & ETM_MODE_LPOVERRIDE) &&
|
||||||
(drvdata->lpoverride == true))
|
(drvdata->lpoverride == true) && !drvdata->tupwr_disable)
|
||||||
config->eventctrl1 |= BIT(12);
|
config->eventctrl1 |= BIT(12);
|
||||||
else
|
else
|
||||||
config->eventctrl1 &= ~BIT(12);
|
config->eventctrl1 &= ~BIT(12);
|
||||||
|
Loading…
Reference in New Issue
Block a user