]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: cti: Access ASICCTL only when implemented
authorLeo Yan <leo.yan@arm.com>
Thu, 26 Feb 2026 09:23:51 +0000 (09:23 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 3 Mar 2026 10:23:45 +0000 (10:23 +0000)
commitb4d9ef475ec71e13e1ec395e9b9e6b165506a564
tree22860168458d5f1ad8590e4d567784575bc963a8
parent6582fe69ac4b1b575e023f5110427c15fbf5ad36
coresight: cti: Access ASICCTL only when implemented

According to the Arm ARM (DDI 0487 L.b), ASICCTL is implemented only
when CTIDEVID.EXTMUXNUM is non-zero.

Based on CTIDEVID.EXTMUXNUM, add a flag 'asicctl_impl' to indicate
whether the register is implemented, and access ASICCTL conditionally
based on the flag.

Allow the sysfs node to be visible only when the register is
implemented.

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-3-b30fada3cfec@arm.com
drivers/hwtracing/coresight/coresight-cti-core.c
drivers/hwtracing/coresight/coresight-cti-sysfs.c
drivers/hwtracing/coresight/coresight-cti.h