mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00
test: dm: restore /firmware nodes after testing
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>
This commit is contained in:
parent
e0afedb640
commit
230038f8ef
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue