From dc5dfae44feea84a65993a4fff4e901a52e161ce Mon Sep 17 00:00:00 2001 From: Mao Jinlong Date: Wed, 1 Jan 2020 18:37:56 +0800 Subject: [PATCH] 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 --- drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c index ee44640edeb5..782e6cd0c8a7 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c @@ -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);