]> www.infradead.org Git - users/dwmw2/linux.git/commit
coresight: Convert tag clear function to take a struct csdev_access
authorJames Clark <james.clark@linaro.org>
Tue, 25 Mar 2025 11:58:46 +0000 (11:58 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 30 Apr 2025 13:58:18 +0000 (14:58 +0100)
commitfc7fed6f77f94f2fd9a7557020503e146eb0ce38
tree76b6faddea26e05c9cd463e6b1c44bf9da4f879d
parentf6028eeeb5e4cf86f93f805098c84974a79bba8a
coresight: Convert tag clear function to take a struct csdev_access

The self hosted claim tag will be reset on device probe in a later
commit. We'll want to do this before coresight_register() is called so
won't have a coresight_device and have to use csdev_access instead.

Also make them public and create locked and unlocked versions for
later use.

These look functions look like they set the whole tags register as one
value, but they only set and clear the self hosted bit using a SET/CLR
bits mechanism so also rename the functions to reflect this better.

Reviewed-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250325-james-coresight-claim-tags-v4-1-dfbd3822b2e5@linaro.org
drivers/hwtracing/coresight/coresight-core.c
include/linux/coresight.h