linux-yocto/drivers/hwtracing
James Clark fd72dd6a82 coresight: Only check bottom two claim bits
[ Upstream commit a4e65842e1 ]

The use of the whole register and == could break the claim mechanism if
any of the other bits are used in the future. The referenced doc "PSCI -
ARM DEN 0022D" also says to only read and clear the bottom two bits.

Use FIELD_GET() to extract only the relevant part.

Reviewed-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250325-james-coresight-claim-tags-v4-2-dfbd3822b2e5@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-10 15:57:33 +02:00
..
coresight coresight: Only check bottom two claim bits 2025-07-10 15:57:33 +02:00
intel_th intel_th: pci: Add Panther Lake-P/U support 2025-03-13 12:51:10 +01:00
stm stm class: Fix a double free in stm_register_device() 2024-06-16 13:39:39 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00