]> git.sur5r.net Git - u-boot/commitdiff
dm: Show both allocated and requested seq numbers in 'dm uclass'
authorSimon Glass <sjg@chromium.org>
Thu, 5 Mar 2015 19:25:23 +0000 (12:25 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Apr 2015 01:27:42 +0000 (19:27 -0600)
Both of these values are useful for understanding what is going on, so show
them both.

The requested number comes from a device tree alias. The allocated one is
set up when the device is activated, and is unique throughout the uclass.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/dm/cmd_dm.c

index 79a674efcc5bc35559698cad5413723a7308d4dc..507f2608591abf671dcb8b71160bd65d7c58d367 100644 (file)
@@ -77,8 +77,8 @@ static void dm_display_line(struct udevice *dev)
        printf("- %c %s @ %08lx",
               dev->flags & DM_FLAG_ACTIVATED ? '*' : ' ',
               dev->name, (ulong)map_to_sysmem(dev));
-       if (dev->req_seq != -1)
-               printf(", %d", dev->req_seq);
+       if (dev->seq != -1 || dev->req_seq != -1)
+               printf(", seq-%d, (req=%d)", dev->seq, dev->req_seq);
        puts("\n");
 }