]> git.baikalelectronics.ru Git - kernel.git/commit
coresight: etm4x: Fix accesses to TRCSEQRSTEVR and TRCSEQSTR
authorJunhao He <hejunhao3@huawei.com>
Sat, 14 Jan 2023 09:16:32 +0000 (17:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:30 +0000 (09:33 +0100)
commitd1167f891a28e8a995f999d3a006896c4a27dc01
tree28c9d8b680dd1b18b4cba7e39141cb00bde977c9
parent2dbdb7ad61145ba3088ff1bb155a30dd2464bd8a
coresight: etm4x: Fix accesses to TRCSEQRSTEVR and TRCSEQSTR

[ Upstream commit f02218f932116649cf5301e05362afa7bfcf2c03 ]

The TRCSEQRSTEVR and TRCSEQSTR registers are not implemented if the
TRCIDR5.NUMSEQSTATE == 0. Skip accessing the registers in such cases.

Fixes: 42fe6252cffc ("coresight-etm4x: Adding CoreSight ETM4x driver")
Signed-off-by: Junhao He <hejunhao3@huawei.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20230114091632.60095-1-hejunhao3@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwtracing/coresight/coresight-etm4x-core.c