From: Mathieu Poirier Date: Fri, 30 Nov 2018 18:43:06 +0000 (-0700) Subject: coresight: etm3x: Release CLAIM tag when operated from perf X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=34e6c35638b95f6efa3f065a04950416ce4bec7f;p=linux.git coresight: etm3x: Release CLAIM tag when operated from perf This patch deals with the release of the CLAIM tag when the ETM is operated from perf. Otherwise the tag is left asserted and subsequent requests to use the device fail. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 6f30d52da9e4d..9a63e87ea5f3f 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c @@ -601,6 +601,7 @@ static void etm_disable_perf(struct coresight_device *csdev) * power down the tracer. */ etm_set_pwrdwn(drvdata); + coresight_disclaim_device_unlocked(drvdata->base); CS_LOCK(drvdata->base); }