mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
coresight: etm4x: Skip selector pair 0
Resource selector pair 0 is always implemented and reserved. As such it should not be explicitly programmed. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com> Tested-by: Leo Yan <leo.yan@linaro.org> Tested-by: Robert Walker <robert.walker@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
82500a810e
commit
8013f32a1b
1 changed files with 5 additions and 2 deletions
|
@ -138,8 +138,11 @@ static int etm4_enable_hw(struct etmv4_drvdata *drvdata)
|
|||
drvdata->base + TRCCNTVRn(i));
|
||||
}
|
||||
|
||||
/* Resource selector pair 0 is always implemented and reserved */
|
||||
for (i = 0; i < drvdata->nr_resource * 2; i++)
|
||||
/*
|
||||
* Resource selector pair 0 is always implemented and reserved. As
|
||||
* such start at 2.
|
||||
*/
|
||||
for (i = 2; i < drvdata->nr_resource * 2; i++)
|
||||
writel_relaxed(config->res_ctrl[i],
|
||||
drvdata->base + TRCRSCTLRn(i));
|
||||
|
||||
|
|
Loading…
Reference in a new issue