]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
coresight: etm4x: Correct polling IDLE bit
authorLeo Yan <leo.yan@arm.com>
Tue, 11 Nov 2025 18:58:38 +0000 (18:58 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 11 Nov 2025 21:47:58 +0000 (21:47 +0000)
commit4dc4e22f9536341255f5de6047977a80ff47eaef
treeb08b7f868bf235f52f443d7a64b0e18b6a4c6549
parentab3fde32afe6a77e5cc60f868e44e6e09424752b
coresight: etm4x: Correct polling IDLE bit

Since commit 4ff6039ffb79 ("coresight-etm4x: add isb() before reading
the TRCSTATR"), the code has incorrectly been polling the PMSTABLE bit
instead of the IDLE bit.

This commit corrects the typo.

Fixes: 4ff6039ffb79 ("coresight-etm4x: add isb() before reading the TRCSTATR")
Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20251111-arm_coresight_power_management_fix-v6-4-f55553b6c8b3@arm.com
drivers/hwtracing/coresight/coresight-etm4x-core.c