]> git.dujemihanovic.xyz Git - u-boot.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)
commit6c640422baa46c5061efa5d2ff1b386bca72253c
treebd2f27a4eef563fa0ce22ebf4b5ca238b8410fa8
parent8da26f51569aa3f9b6a0be49058399a0a036c14a
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 d97e98c887ed ("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