coresight: cti: Fix register reads

Introduce cti_read_single_reg() as an interface for reading registers
with unlocking the CS lock.  Consolidate register read in sysfs
interfaces using this new helper.

Fixes: b5213376c2 ("coresight: cti: Add sysfs access to program function registers")
Fixes: 1a556ca6cc ("coresight: cti: Add sysfs coresight mgmt register access")
Reviewed-by: Mike Leach <mike.leach@arm.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/20260226-arm_coresight_cti_refactor_v1-v2-2-b30fada3cfec@arm.com
This commit is contained in:
Leo Yan 2026-02-26 09:23:50 +00:00 • committed by Suzuki K Poulose
commit 6582fe69ac
3 changed files with 14 additions and 4 deletions