]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: support all uclasses in device path
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 19 Jul 2023 04:43:08 +0000 (06:43 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 20 Jul 2023 07:12:50 +0000 (09:12 +0200)
commite07368ea57d224557570a6715dcffdbc883a8079
treed109142eaa8cba2ead501a544faf857cadc14c95
parentdc7a2f1d9fcd642ba8c2a6d544244c7852c5f6ec
efi_loader: support all uclasses in device path

On devices with multiple USB mass storage devices errors like

    Path /../USB(0x0,0x0)/USB(0x1,0x0)/Ctrl(0x0)
    already installed.

are seen. This is due to creating non-unique device paths. To uniquely
identify devices we must provide path nodes for all devices on the path
from the root device.

Add support for generating device path nodes for all uclasses.

Reported-by: Suniel Mahesh <sunil@amarulasolutions.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi_api.h
lib/efi_loader/efi_device_path.c