]> git.ipfire.org Git - thirdparty/linux.git/commit
coresight: Add PM callbacks for sink device
authorLeo Yan <leo.yan@arm.com>
Fri, 15 May 2026 20:08:31 +0000 (21:08 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 18 May 2026 09:18:47 +0000 (10:18 +0100)
commit7bbe5a172376d1bbf5da4a68fee6d77ae5a03e55
tree7fc9ceb3742567a55f80c99a40b6b08f337c2246
parent39c40892f1a45908fbc57c334ac503da0c80d77c
coresight: Add PM callbacks for sink device

Unlike system level sinks, per-CPU sinks may lose power during CPU idle
states.  Currently, this applies specifically to TRBE.  This commit
invokes save and restore callbacks for the sink in the CPU PM notifier.

If the sink provides PM callbacks but the source does not, this is
unsafe because the sink cannot be disabled safely unless the source
can also be controlled, so veto low power entry to avoid lockups.

Tested-by: James Clark <james.clark@linaro.org>
Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Tested-by: Jie Gan <jie.gan@oss.qualcomm.com>
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/20260515-arm_coresight_path_power_management_improvement-v14-24-f88c4a3ecfe9@arm.com
drivers/hwtracing/coresight/coresight-core.c