]> git.dujemihanovic.xyz Git - u-boot.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)
commitecb274cf06b79c791509e43af53d5a2ff1112941
tree27c90e872b54257090d8f952dc278b158ded3685
parentd94d9844bca9352b1e9888a70f12c79ec76cd313
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