diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2022-02-07 11:59:35 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-02-08 12:36:13 +0100 |
commit | eedf7a3b5f990dff893b54740ceea917c24e2cb7 (patch) | |
tree | c143636ffff3681180c3cf38d75bd46ca6d70671 /common/efi | |
parent | b03cba067bd70e472d8ca67160f2928c4d4e2500 (diff) | |
download | barebox-eedf7a3b5f990dff893b54740ceea917c24e2cb7.tar.gz barebox-eedf7a3b5f990dff893b54740ceea917c24e2cb7.tar.xz |
efi: probe devices from the device-tree
The state device-tree may contain devices. For example block devices with a
'barebox,storage-by-uuid' compatible. Probing is necessary to ensure that
those devices are available.
Call barebox_register_of() instead of of_set_root_node(). It probes the
devices after setting the root node.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/efi')
-rw-r--r-- | common/efi/payload/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/efi/payload/init.c b/common/efi/payload/init.c index 6db6b23895..1541683186 100644 --- a/common/efi/payload/init.c +++ b/common/efi/payload/init.c @@ -349,7 +349,9 @@ static int efi_late_init(void) if (IS_ERR(root)) return PTR_ERR(root); - of_set_root_node(root); + ret = barebox_register_of(root); + if (ret) + pr_warn("Failed to register device-tree: %pe\n", ERR_PTR(ret)); np = of_find_node_by_alias(root, "state"); |