OSDN Git Service

coresight: etm3x: Release CLAIM tag when operated from perf
authorMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 30 Nov 2018 18:43:06 +0000 (11:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Dec 2018 14:41:55 +0000 (15:41 +0100)
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 <mathieu.poirier@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm3x.c

index 6f30d52..9a63e87 100644 (file)
@@ -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);
 }