From 3a343d018a91dd1a556834f84248d9b2c3e61b4c Mon Sep 17 00:00:00 2001 From: "Tao,Zhang" Date: Tue, 15 Sep 2020 11:44:52 +0800 Subject: [PATCH] coresight: tmc-etf: Set reading status to False Set reading status to False in function tmc_read_unprepare_etb. Otherwise, it will causes device or resource busy error issue. Change-Id: I82a3896665e91ad36109e55f8ed29fd7f2667ed0 Signed-off-by: Tao,Zhang --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-tmc-etf.c b/drivers/hwtracing/coresight/coresight-tmc-etf.c index da3c72467502..2c63c193b87a 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etf.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etf.c @@ -680,6 +680,8 @@ int tmc_read_unprepare_etb(struct tmc_drvdata *drvdata) drvdata->buf = NULL; } + drvdata->reading = false; + spin_unlock_irqrestore(&drvdata->spinlock, flags); /*