From: Simon Glass <sjg@chromium.org>
Date: Mon, 5 Jul 2021 22:32:39 +0000 (-0600)
Subject: dm: core: Add logging for DM_SEQ_ALIAS
X-Git-Tag: v2025.01-rc5-pxa1908~1785^2~28
X-Git-Url: http://git.dujemihanovic.xyz/html/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=4bbaa88fad00205b6f2ae9ea0e57cfd878354a3a;p=u-boot.git

dm: core: Add logging for DM_SEQ_ALIAS

It is sometimes helpful to see which sequence is assigned to a device.
Add debugging info for that.

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

diff --git a/drivers/core/device.c b/drivers/core/device.c
index 9f1400768d..29668f6fb3 100644
--- a/drivers/core/device.c
+++ b/drivers/core/device.c
@@ -87,8 +87,10 @@ static int device_bind_common(struct udevice *parent, const struct driver *drv,
 		if (CONFIG_IS_ENABLED(OF_CONTROL) &&
 		    !CONFIG_IS_ENABLED(OF_PLATDATA)) {
 			if (uc->uc_drv->name && ofnode_valid(node)) {
-				if (!dev_read_alias_seq(dev, &dev->seq_))
+				if (!dev_read_alias_seq(dev, &dev->seq_)) {
 					auto_seq = false;
+					log_debug("   - seq=%d\n", dev->seq_);
+					}
 			}
 		}
 	}