mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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:
parent
a728307820
commit
8172d1c3fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue