mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
coresight: disable tpiu at init to support older targets
Some targets require tpiu is disabled before other sinks like ETB get enabled to get proper ETM trace. Change-Id: Idcacf7b6515fd17c3a49c74a338258f02631f7cc Signed-off-by: Pratik Patel <pratikp@codeaurora.org>
This commit is contained in:
parent
fcc2ed9263
commit
1a2f7220d8
1 changed files with 8 additions and 0 deletions
|
@ -119,9 +119,17 @@ static int __devinit tpiu_probe(struct platform_device *pdev)
|
|||
if (ret)
|
||||
goto err_clk_rate;
|
||||
|
||||
/* Disable tpiu to support older targets that need this */
|
||||
ret = clk_prepare_enable(drvdata->clk);
|
||||
if (ret)
|
||||
goto err_clk_enable;
|
||||
__tpiu_disable();
|
||||
clk_disable_unprepare(drvdata->clk);
|
||||
|
||||
dev_info(drvdata->dev, "TPIU initialized\n");
|
||||
return 0;
|
||||
|
||||
err_clk_enable:
|
||||
err_clk_rate:
|
||||
clk_put(drvdata->clk);
|
||||
err_clk_get:
|
||||
|
|
Loading…
Reference in a new issue