]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: disk: allow blk devices even without UCLASS_PARTITION
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 28 Apr 2022 04:49:16 +0000 (13:49 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 29 Apr 2022 12:25:40 +0000 (14:25 +0200)
commit16bc9b7fb77de7b8a4ff6ce9bdd83e229eabe311
treebd2f27a4eef563fa0ce22ebf4b5ca238b8410fa8
parent8d99e616031b2c8dda494c897d3f95027da37234
efi_loader: disk: allow blk devices even without UCLASS_PARTITION

While GPT partition is mandated in UEFI specification, CONFIG_PARTITION is
seen optional under the current implementation.
So modify efi_disk_rw_blocks() to allow accepting UCLASS_BLK devices.

Fixes: commit 5ab1ab597483 ("efi_loader: disk: use udevice instead of blk_desc")
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Mark Kettenis <kettenis@openbsd.org>
lib/efi_loader/efi_disk.c