summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing
diff options
context:
space:
mode:
authorTao Zhang <quic_taozha@quicinc.com>2023-09-28 14:29:34 +0800
committerSuzuki K Poulose <suzuki.poulose@arm.com>2023-11-16 11:35:15 +0000
commitf4443ee5a38cb84bdd0515f8832117b2be0684d6 (patch)
treebd163794c301d3d9d63d559b2d6f5e8abb9b0d81 /drivers/hwtracing
parent2373699a3505061cd21625c3f3b70dc3d03a3d8c (diff)
downloadlinux-f4443ee5a38cb84bdd0515f8832117b2be0684d6.tar.gz
linux-f4443ee5a38cb84bdd0515f8832117b2be0684d6.tar.bz2
linux-f4443ee5a38cb84bdd0515f8832117b2be0684d6.zip
coresight-tpdm: Remove the unnecessary lock
Remove the unnecessary lock "CS_{UN,}LOCK" in TPDM driver. This lock is only needed while writing the data to Coresight registers. Signed-off-by: Tao Zhang <quic_taozha@quicinc.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/1695882586-10306-2-git-send-email-quic_taozha@quicinc.com
Diffstat (limited to 'drivers/hwtracing')
-rw-r--r--drivers/hwtracing/coresight/coresight-tpdm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwtracing/coresight/coresight-tpdm.c b/drivers/hwtracing/coresight/coresight-tpdm.c
index f4854af0431e..b6456120b76a 100644
--- a/drivers/hwtracing/coresight/coresight-tpdm.c
+++ b/drivers/hwtracing/coresight/coresight-tpdm.c
@@ -114,11 +114,9 @@ static void tpdm_init_default_data(struct tpdm_drvdata *drvdata)
{
u32 pidr;
- CS_UNLOCK(drvdata->base);
/* Get the datasets present on the TPDM. */
pidr = readl_relaxed(drvdata->base + CORESIGHT_PERIPHIDR0);
drvdata->datasets |= pidr & GENMASK(TPDM_DATASETS - 1, 0);
- CS_LOCK(drvdata->base);
}
/*