From: Simon Glass <sjg@chromium.org>
Date: Wed, 23 Jul 2014 12:55:13 +0000 (-0600)
Subject: dm: Display the sequence number for each device
X-Git-Tag: v2025.01-rc5-pxa1908~14969
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/index.html?a=commitdiff_plain;h=b7d665705ebb29f06616b7f365ab8732e9779bf6;p=u-boot.git

dm: Display the sequence number for each device

Add this information to 'dm tree' and 'dm uclass' commands.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

diff --git a/test/dm/cmd_dm.c b/test/dm/cmd_dm.c
index 93e525579d..26980d209f 100644
--- a/test/dm/cmd_dm.c
+++ b/test/dm/cmd_dm.c
@@ -29,6 +29,8 @@ static void dm_display_line(struct udevice *dev, char *buf)
 	printf("%s- %c %s @ %08lx", buf,
 	       dev->flags & DM_FLAG_ACTIVATED ? '*' : ' ',
 	       dev->name, (ulong)map_to_sysmem(dev));
+	if (dev->req_seq != -1)
+		printf(", %d", dev->req_seq);
 	puts("\n");
 }