The implementation of OpenProtocol was incomplete up to now. CloseProtocol and OpenProtocolInformation were not implemented.
The first patch prints a debug message with the protocol GUID in OpenProtocol. The second patch adds a table of efi_open_protocol_info_entry to keep track of locks to each protocol entry of each handle. This table is maintained in OpenProtocol and CloseProtocol. The third patch implements OpenProtocolInformation which returns said table. --- v3 Use list_for_each_entry Fix indention Use EFI_CALL to avoid wrapper for efi_disconnect_controller v2 Fixed typo in 1st patch which is resubmitted. Added 2nd and 3rd patch. --- Heinrich Schuchardt (3): efi_loader: write protocol GUID in OpenProtocol efi_loader: open_info in OpenProtocol, CloseProtocol efi_loader: implement OpenProtocolInformation include/efi_loader.h | 15 +++ lib/efi_loader/efi_boottime.c | 240 ++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 244 insertions(+), 11 deletions(-) -- 2.11.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot