]> git.baikalelectronics.ru Git - uboot.git/commit
dm: test: Correct ordering of DM setup
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:23 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:39 +0000 (18:11 -0500)
commit3de5aca4162330b55a1d0570464b8d7129d118fd
tree27c90e872b54257090d8f952dc278b158ded3685
parentc1992d1dc45db47c4b0bccfd52d2198acb4ce751
dm: test: Correct ordering of DM setup

We must call dm_scan_other() after devices from the device tree have been
created, since that function behaves differently if there is no bootstd
device.

Adjust the logic to achieve this.

Also fix the bootflow_system() test which was relying on this broken
behaviour.

Signed-off-by: Simon Glass <sjg@chromium.org>
test/boot/bootflow.c
test/test-main.c