aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/coresight.h
diff options
context:
space:
mode:
authorJames Clark <james.clark@linaro.org>2025-03-25 11:58:46 +0000
committerSuzuki K Poulose <suzuki.poulose@arm.com>2025-04-30 14:58:18 +0100
commitfc7fed6f77f94f2fd9a7557020503e146eb0ce38 (patch)
tree76b6faddea26e05c9cd463e6b1c44bf9da4f879d /include/linux/coresight.h
parentcoresight: core: Disable helpers for devices that fail to enable (diff)
downloadwireguard-linux-fc7fed6f77f94f2fd9a7557020503e146eb0ce38.tar.xz
wireguard-linux-fc7fed6f77f94f2fd9a7557020503e146eb0ce38.zip
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
Diffstat (limited to 'include/linux/coresight.h')
-rw-r--r--include/linux/coresight.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/coresight.h b/include/linux/coresight.h
index cfcf6e4707ed..b89692d9ceac 100644
--- a/include/linux/coresight.h
+++ b/include/linux/coresight.h
@@ -685,7 +685,8 @@ extern int coresight_timeout_action(struct csdev_access *csa, u32 offset,
extern int coresight_claim_device(struct coresight_device *csdev);
extern int coresight_claim_device_unlocked(struct coresight_device *csdev);
-
+void coresight_clear_self_claim_tag(struct csdev_access *csa);
+void coresight_clear_self_claim_tag_unlocked(struct csdev_access *csa);
extern void coresight_disclaim_device(struct coresight_device *csdev);
extern void coresight_disclaim_device_unlocked(struct coresight_device *csdev);
extern char *coresight_alloc_device_name(struct coresight_dev_list *devs,