]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
coresight: etm4x: Extract the trace unit controlling
authorLeo Yan <leo.yan@arm.com>
Tue, 1 Apr 2025 18:07:02 +0000 (19:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:54:57 +0000 (13:54 +0100)
commit11c5672a04d099de03e4b4571a1ba0cee62f5fb4
treea8c9f0cc1bbea1beb87814eb4b80f889a31954a2
parentbebb32a222280ce8fef8b2eb7387edb0858e6149
coresight: etm4x: Extract the trace unit controlling

[ Upstream commit 40f682ae5086366d51e29e66eb8a344501245d0d ]

The trace unit is controlled in the ETM hardware enabling and disabling.
The sequential changes for support AUX pause and resume will reuse the
same operations.

Extract the operations in the etm4_{enable|disable}_trace_unit()
functions.  A minor improvement in etm4_enable_trace_unit() is for
returning the timeout error to callers.

Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250401180708.385396-2-leo.yan@arm.com
Stable-dep-of: 64eb04ae5452 ("coresight: etm4x: Add context synchronization before enabling trace")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwtracing/coresight/coresight-etm4x-core.c