coresight: Add helper for atomically taking the device
authorJames Clark <james.clark@arm.com>
Mon, 29 Jan 2024 15:40:41 +0000 (15:40 +0000)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 12 Feb 2024 10:21:38 +0000 (10:21 +0000)
commitd724f65218b994da234081df5dfe417c23802a65
tree4e9ffdd813269f25fbdfdbe89ff7e3db5faf744f
parent812265e26ed3ac76d3a131709d8755bafcf31b58
coresight: Add helper for atomically taking the device

Now that mode is in struct coresight_device, this pattern can be wrapped
in a helper.

Signed-off-by: James Clark <james.clark@arm.com>
Link: https://lore.kernel.org/r/20240129154050.569566-11-james.clark@arm.com
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
drivers/hwtracing/coresight/coresight-etm3x-core.c
drivers/hwtracing/coresight/coresight-etm4x-core.c
drivers/hwtracing/coresight/coresight-stm.c
include/linux/coresight.h