summaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2018-11-30 11:43:04 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-06 15:41:55 +0100
commit32c58c4d3bd0046bef8e2b5fcadff963f3ef7274 (patch)
tree65abbd2678835a0f7b4532c928b2c34c8ecde7db /drivers/hwtracing
parentacaf5a06b9718ca3499ccd0b6fd9ec461cd53554 (diff)
downloadlinux-stable-32c58c4d3bd0046bef8e2b5fcadff963f3ef7274.tar.gz
linux-stable-32c58c4d3bd0046bef8e2b5fcadff963f3ef7274.tar.bz2
linux-stable-32c58c4d3bd0046bef8e2b5fcadff963f3ef7274.zip
coresight: etf: Release CLAIM tag after disabling the HW
This patch rectifies the sequence of events in function tmc_etb_disable_hw() by disabling the HW first and then releasing the CLAIM tag. Otherwise we could be corrupting the configuration done by an external agent that would have claimed the device after we have released it. 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>
Diffstat (limited to 'drivers/hwtracing')
-rw-r--r--drivers/hwtracing/coresight/coresight-tmc-etf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/coresight/coresight-tmc-etf.c b/drivers/hwtracing/coresight/coresight-tmc-etf.c
index 5864ac55e275..a5f053f2db2c 100644
--- a/drivers/hwtracing/coresight/coresight-tmc-etf.c
+++ b/drivers/hwtracing/coresight/coresight-tmc-etf.c
@@ -86,8 +86,8 @@ static void __tmc_etb_disable_hw(struct tmc_drvdata *drvdata)
static void tmc_etb_disable_hw(struct tmc_drvdata *drvdata)
{
- coresight_disclaim_device(drvdata->base);
__tmc_etb_disable_hw(drvdata);
+ coresight_disclaim_device(drvdata->base);
}
static void __tmc_etf_enable_hw(struct tmc_drvdata *drvdata)