coresight: stm: Update STM driver to use Trace ID API
authorMike Leach <mike.leach@linaro.org>
Mon, 16 Jan 2023 12:49:17 +0000 (12:49 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Thu, 19 Jan 2023 10:16:47 +0000 (10:16 +0000)
commit8d1091c785e1599cccb3d14c54c79e4d7e325220
tree2f12bae6dd5acdc6e01901a5e2a42144eb46e312
parent4ff1fdb4125c4e500dcbb8bf3826bb65f7a79429
coresight: stm: Update STM driver to use Trace ID API

Updates the STM driver to use the trace ID allocation API.
This uses the _system_id calls to allocate an ID on device poll,
and release on device remove.

The sysfs access to the STMTRACEIDR register has been changed from RW
to RO. Having this value as writable is not appropriate for the new
Trace ID scheme - and had potential to cause errors in the previous
scheme if values clashed with other sources.

Signed-off-by: Mike Leach <mike.leach@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230116124928.5440-5-mike.leach@linaro.org
drivers/hwtracing/coresight/coresight-stm.c