linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/13 v2] coresight: etm: print what version of ETM/PTM is detected
@ 2015-04-20 12:58 Linus Walleij
  2015-04-20 12:58 ` [PATCH 02/13 v2] coresight: support the TPIU version found in Ux500 Linus Walleij
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: Linus Walleij @ 2015-04-20 12:58 UTC (permalink / raw)
  To: linux-arm-kernel

Helpfully report a bit more about the hardware found in the
silicon when matching the AMBA device IDs by using the associated
.data pointer in the AMBA match.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
ChangeLog v1->v2:
- Rebased on the coresight git tree.
---
 drivers/hwtracing/coresight/coresight-etm3x.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c
index c965f5724abd..66e210d5fddd 100644
--- a/drivers/hwtracing/coresight/coresight-etm3x.c
+++ b/drivers/hwtracing/coresight/coresight-etm3x.c
@@ -1859,7 +1859,7 @@ static int etm_probe(struct amba_device *adev, const struct amba_id *id)
 		goto err_arch_supported;
 	}
 
-	dev_info(dev, "ETM initialized\n");
+	dev_info(dev, "%s initialized\n", (char *)id->data);
 
 	if (boot_enable) {
 		coresight_enable(drvdata->csdev);
@@ -1890,18 +1890,22 @@ static struct amba_id etm_ids[] = {
 	{	/* ETM 3.3 */
 		.id	= 0x0003b921,
 		.mask	= 0x0003ffff,
+		.data	= "ETM 3.3",
 	},
 	{	/* ETM 3.5 */
 		.id	= 0x0003b956,
 		.mask	= 0x0003ffff,
+		.data	= "ETM 3.5",
 	},
 	{	/* PTM 1.0 */
 		.id	= 0x0003b950,
 		.mask	= 0x0003ffff,
+		.data	= "PTM 1.0",
 	},
 	{	/* PTM 1.1 */
 		.id	= 0x0003b95f,
 		.mask	= 0x0003ffff,
+		.data	= "PTM 1.1",
 	},
 	{ 0, 0},
 };
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-04-22 13:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-20 12:58 [PATCH 01/13 v2] coresight: etm: print what version of ETM/PTM is detected Linus Walleij
2015-04-20 12:58 ` [PATCH 02/13 v2] coresight: support the TPIU version found in Ux500 Linus Walleij
2015-04-20 12:58 ` [PATCH 03/13 v2] coresight: etm: let runtime PM handle core clock Linus Walleij
2015-04-20 12:58 ` [PATCH 04/13 v2] coresight: tpiu: " Linus Walleij
2015-04-20 12:58 ` [PATCH 05/13 v2] coresight: etb: " Linus Walleij
2015-04-20 12:58 ` [PATCH 06/13 v2] coresight: funnel: " Linus Walleij
2015-04-20 12:59 ` [PATCH 07/13 v2] coresight: tmc: " Linus Walleij
2015-04-20 12:59 ` [PATCH 08/13 v2] coresight: etm: retrieve and handle atclk Linus Walleij
2015-04-20 12:59 ` [PATCH 09/13 v2] coresight: tpiu: " Linus Walleij
2015-04-20 12:59 ` [PATCH 10/13 v2] coresight: etb: " Linus Walleij
2015-04-20 12:59 ` [PATCH 11/13 v2] coresight: funnel: " Linus Walleij
2015-04-20 12:59 ` [PATCH 12/13 v2] coresight: replicator: " Linus Walleij
2015-04-20 14:17   ` Ulf Hansson
2015-04-20 12:59 ` [PATCH 13/13] coresight: document the bindings for the ATCLK Linus Walleij
2015-04-21 14:31   ` Mathieu Poirier
2015-04-22 13:50 ` [PATCH 01/13 v2] coresight: etm: print what version of ETM/PTM is detected Mathieu Poirier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).