]> www.infradead.org Git - users/dwmw2/linux.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)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 14 May 2025 10:56:12 +0000 (11:56 +0100)
commit40f682ae5086366d51e29e66eb8a344501245d0d
tree3c2351387bd81319188498a95c816aff45dcb59f
parentaad548a95393cd08ad029fb2393a88d1b9ec1c48
coresight: etm4x: Extract the trace unit controlling

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
drivers/hwtracing/coresight/coresight-etm4x-core.c