coresight: etm4x: Fix missing trctraceidr file in sysfs
authorMike Leach <mike.leach@linaro.org>
Fri, 12 May 2023 13:30:54 +0000 (14:30 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 6 Jun 2023 09:39:15 +0000 (10:39 +0100)
commit9f37d3798026f9a7447d851a2cb356610852e426
treea21f81ac01bb3a8b487e4c4a49cc4c59f131f512
parent1b5b1646e63d5ce43469e00680b8c1a3a1e034cd
coresight: etm4x: Fix missing trctraceidr file in sysfs

The trace ID patchset adjusted the handling of the TRCTRACEIDR register
sysfs to allocate on read.

Although this was initally correct, the final version of the patch series
introduced an error which resulted in the mgmt/trctraceidr file in sysfs
not being visible.

This patch fixes that issue.

Fixes: df4871204e5d ("coresight: etm4x: Update ETM4 driver to use Trace ID API")
Reported-by: Junhao He <hejunhao3@huawei.com>
Link: https://lists.linaro.org/archives/list/coresight@lists.linaro.org/thread/KK3CVVMRHJWVUORKMFJRSXYCEDFKENQJ/
Signed-off-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230512133054.235073-1-mike.leach@linaro.org
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c