aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2023-06-08 09:55:59 +0900
committerTom Rini <trini@konsulko.com>2023-06-20 16:11:20 -0400
commit18057cee45edfbfff0af121376964804b7ec77ee (patch)
tree6cd9caa852732b64017b1c35bef9fbc67b16b10b
parent2b1a4d342005412cfb2f1dce101bec890d21c074 (diff)
downloadu-boot-WIP/2023-06-20-assorted-update.zip
u-boot-WIP/2023-06-20-assorted-update.tar.gz
u-boot-WIP/2023-06-20-assorted-update.tar.bz2
test: dm: restore /firmware nodes after testingWIP/2023-06-20-assorted-update
dm_test_restore() is called after dm unit test is run. But this function does not scan any nodes under /firmware since it calls dm_scan_fdt(). This causes an issue. For instance, scmi_sandbox_agent device will disappear after running 'ut dm scmi_sandbox_agent'. So call dm_extended_scan() instead. This change will be coherent with what dm_scan() and test_pre_run() does. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--test/test-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-main.c b/test/test-main.c
index b3c30d9..2a3b2ba 100644
--- a/test/test-main.c
+++ b/test/test-main.c
@@ -272,7 +272,7 @@ static int dm_test_restore(struct device_node *of_root)
return ret;
dm_scan_plat(false);
if (!CONFIG_IS_ENABLED(OF_PLATDATA))
- dm_scan_fdt(false);
+ dm_extended_scan(false);
return 0;
}