dm: core: Add logging for DM_SEQ_ALIAS
authorSimon Glass <sjg@chromium.org>
Mon, 5 Jul 2021 22:32:39 +0000 (16:32 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
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>
drivers/core/device.c

index 9f14007..29668f6 100644 (file)
@@ -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_);
+                                       }
                        }
                }
        }