dm: Add a debug message when devices are skipped pre-reloc
authorSean Anderson <seanga2@gmail.com>
Wed, 25 Dec 2019 04:52:01 +0000 (23:52 -0500)
committerSimon Glass <sjg@chromium.org>
Tue, 7 Jan 2020 23:03:01 +0000 (16:03 -0700)
This adds a message to lists_bind_fdt when it skips initializing a device
pre-relocation. I've had a couple errors where a device didn't initialize
properly because one of its dependencies was missing.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/lists.c

index 4681b3e5dd1a02fd4268a089ea75941e94087be7..68204c303fbd37566e87b00f55aa118fbc155cbb 100644 (file)
@@ -176,8 +176,10 @@ int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp,
 
                if (pre_reloc_only) {
                        if (!dm_ofnode_pre_reloc(node) &&
-                           !(entry->flags & DM_FLAG_PRE_RELOC))
+                           !(entry->flags & DM_FLAG_PRE_RELOC)) {
+                               log_debug("Skipping device pre-relocation\n");
                                return 0;
+                       }
                }
 
                log_debug("   - found match at '%s': '%s' matches '%s'\n",