diff options
author | Rajan Vaja | 2018-08-10 01:45:34 -0700 |
---|---|---|
committer | Simon Glass | 2018-09-18 08:12:21 -0600 |
commit | 1712ca21924bff678f19fd3141f435408d23bdbf (patch) | |
tree | 341bb2a4a7345652fd5536f89bd0dc252ca8e6b8 /drivers/core | |
parent | 68d215d907b1512a8089f47a9d47d02a9a3b179e (diff) |
dm: core: Scan "/firmware" node by default
All Linux firmware drivers are put under "/firmware" node
and it has support to populate "/firmware" node by default.
u-boot and Linux can share same DTB. In this case, driver
probe for devices under "/firmware" will not be invoked
as "/firmware" does not have its own "compatible" property.
This patch scans "/firmware" node by default like "/clocks".
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core')
-rw-r--r-- | drivers/core/root.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/core/root.c b/drivers/core/root.c index 1ab4c38bcf5..47d10b888fa 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -357,8 +357,14 @@ int dm_extended_scan_fdt(const void *blob, bool pre_reloc_only) } ret = dm_scan_fdt_ofnode_path("/clocks", pre_reloc_only); - if (ret) + if (ret) { debug("scan for /clocks failed: %d\n", ret); + return ret; + } + + ret = dm_scan_fdt_ofnode_path("/firmware", pre_reloc_only); + if (ret) + debug("scan for /firmware failed: %d\n", ret); return ret; } |