diff mbox

[U-Boot,v2,11/22] dm: Show both allocated and requested seq numbers in 'dm uclass'

Message ID 1425583534-2238-12-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass March 5, 2015, 7:25 p.m. UTC
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>
---

Changes in v2: None

 test/dm/cmd_dm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Simon Glass March 20, 2015, 11:16 p.m. UTC | #1
On 5 March 2015 at 12:25, Simon Glass <sjg@chromium.org> wrote:
> 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>
> ---
>
> Changes in v2: None
>
>  test/dm/cmd_dm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to u-boot-dm/next.
diff mbox

Patch

diff --git a/test/dm/cmd_dm.c b/test/dm/cmd_dm.c
index 79a674e..507f260 100644
--- a/test/dm/cmd_dm.c
+++ b/test/dm/cmd_dm.c
@@ -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");
 }