]> git.dujemihanovic.xyz Git - u-boot.git/commit
boot: set correct block device name in set_efi_bootdev()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 7 Aug 2024 00:13:45 +0000 (02:13 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 11 Aug 2024 05:53:16 +0000 (07:53 +0200)
commited3ce65958ceb5a7045748e329f4e1dbef5e99e9
treea8b7fbd0aaa028a8f4d5fa18d6d2f141f8111206
parent751e5bfdb531aa3093e02d616a4f0bce701e8b50
boot: set correct block device name in set_efi_bootdev()

For SATA devices the class name is 'ahci' but the block device name is
'sata'.

Use function blk_get_uclass_name() to retrieve the correct string.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
boot/bootmeth_efi.c