]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootstd: Correct logic for single uclass
authorSimon Glass <sjg@chromium.org>
Mon, 23 Oct 2023 07:02:12 +0000 (00:02 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Oct 2023 17:05:13 +0000 (13:05 -0400)
commit16e19350d91e3c7e916b85b84c0364b20ac193d2
treeac17f09394be0ef6959658cc439b04babb8f0902
parent7ae83bfaf437320ec6b6e883bd2896fba784fbf9
bootstd: Correct logic for single uclass

The current logic for "bootflow mmc" is flawed since it checks the
uclass of the bootdev instead of its parent, the media device. Correct
this and add a test that covers this scenario.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Ivan T.Ivanov <iivanov@suse.de>
boot/bootflow.c
test/boot/bootdev.c