coresight-tmc-etr: remove mem_lock when call usb_qdss_close

This mem_lock will cause deadlock when usb close router call back to
usb_notifier. so remove it.

Change-Id: I9530c843702ca605f6935cc0ac6d9649bf204594
Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
This commit is contained in:
Yuanfang Zhang 2021-07-26 23:24:23 +08:00 • committed by Gerrit - the friendly Code Review server
commit 5bbfc7877b

View file

@ -2201,7 +2201,9 @@ static int _tmc_disable_etr_sink(struct coresight_device *csdev,
spin_unlock_irqrestore(&drvdata->spinlock,
flags);
tmc_etr_bam_disable(drvdata);
mutex_unlock(&drvdata->mem_lock);
usb_qdss_close(drvdata->usbch);
mutex_lock(&drvdata->mem_lock);
drvdata->usbch = NULL;
goto out;
} else {