]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:40 +0000 (13:09 +0100)
commitfcf4ad3208e9606cf84e11be18007fc4c3b866f8
tree63d3b48d42c2afa723644f253ebf03a61a5cd32b
parent754512b096b92d9cf4186c65b1da9e9dd102c2e7
coresight: etm4x: Correct polling IDLE bit

commit 4dc4e22f9536341255f5de6047977a80ff47eaef upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm4x-core.c