aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/coresight
diff options
context:
space:
mode:
authorMathieu Poirier <mathieu.poirier@linaro.org>2015-01-09 18:57:17 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-12 08:04:13 -0500
commitb2c09284bbfe36f9ba0e3e8bec8bb3c4789b3911 (patch)
treeaf7f949c2915fe10024b05ccef68d198650219d2 /drivers/coresight
parent3ff7ca051a43bf2dfd1eebdd6c771c4b7a276d8e (diff)
coresight-etm: Fix initial trace ID value
The coresight TRM specify that a component's trace ID should be other than 0. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/coresight')
-rw-r--r--drivers/coresight/coresight-etm3x.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/coresight/coresight-etm3x.c b/drivers/coresight/coresight-etm3x.c
index 369cac00afaa..73c36696f1b6 100644
--- a/drivers/coresight/coresight-etm3x.c
+++ b/drivers/coresight/coresight-etm3x.c
@@ -1749,7 +1749,11 @@ static void etm_init_arch_data(void *info)
1749 1749
1750static void etm_init_default_data(struct etm_drvdata *drvdata) 1750static void etm_init_default_data(struct etm_drvdata *drvdata)
1751{ 1751{
1752 static int etm3x_traceid; 1752 /*
1753 * A trace ID of value 0 is invalid, so let's start at some
1754 * random value that fits in 7 bits and will be just as good.
1755 */
1756 static int etm3x_traceid = 0x10;
1753 1757
1754 u32 flags = (1 << 0 | /* instruction execute*/ 1758 u32 flags = (1 << 0 | /* instruction execute*/
1755 3 << 3 | /* ARM instruction */ 1759 3 << 3 | /* ARM instruction */