linux-yocto/drivers/hwtracing
James Clark 8217fa7d92 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-06 11:00:07 +02:00
..
coresight coresight: Only check bottom two claim bits 2025-07-06 11:00:07 +02:00
intel_th intel_th: avoid using deprecated page->mapping, index fields 2025-06-04 14:41:52 +02:00
ptt hwtracing: hisi_ptt: Move type check to the beginning of hisi_ptt_pmu_event_init() 2024-03-26 18:20:06 -04:00
stm stm class: Fix a double free in stm_register_device() 2024-06-12 11:12:26 +02:00
Kconfig