coresight-tmc-etr : Call _tmc_disable_etr_sink when switch mode

If call tmc_disable_etr_sink in switch mode function, there will be
dead lock issue as there is mem_lock in tmc_disable_etr_sink. So need
to call _tmc_disable_etr_sink.

Change-Id: I6ea242e8f519c6dea8f2b80235841bee7af1931e
Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
This commit is contained in:
Mao Jinlong 2020-03-11 19:14:33 +08:00 • committed by Gerrit - the friendly Code Review server
commit 8172d1c3fd

View file

@ -2017,7 +2017,7 @@ int tmc_etr_switch_mode(struct tmc_drvdata *drvdata, const char *out_mode)
}
coresight_disable_all_source_link();
tmc_disable_etr_sink(drvdata->csdev);
_tmc_disable_etr_sink(drvdata->csdev);
old_mode = drvdata->out_mode;
drvdata->out_mode = new_mode;
if (tmc_enable_etr_sink_sysfs(drvdata->csdev)) {