For capsule update, explicitly set the dfu_alt_info environment variable before the DFU operation, and then restore it to the original value. Previously, the dfu_alt_info environment variable was set with the set_dfu_alt_info() function.
The problem with setting the capsule update's dfu_alt_info setting in set_dfu_alt_info() is that set_dfu_alt_info() lacks the context of what DFU operation is being performed (eg, capsule update, DFU boot, listing the alt_info, etc) so the capsule update setting was overwriting the setting for other DFU operations. Jonathan Humphreys (2): efi_firmware: set EFI capsule dfu_alt_info env explicitly board: remove capsule update support in set_dfu_alt_info() board/beagle/beagleboneai64/beagleboneai64.c | 8 ----- board/beagle/beagleplay/beagleplay.c | 8 ----- .../aml-a311d-cc/aml-a311d-cc.c | 2 -- .../aml-s805x-ac/aml-s805x-ac.c | 2 -- .../aml-s905d3-cc/aml-s905d3-cc.c | 2 -- board/phytec/common/k3/board.c | 8 ----- board/ti/am62px/evm.c | 8 ----- board/ti/am62x/evm.c | 8 ----- board/ti/am64x/evm.c | 8 ----- board/ti/j721e/evm.c | 8 ----- board/ti/j784s4/evm.c | 8 ----- lib/efi_loader/Kconfig | 2 -- lib/efi_loader/efi_firmware.c | 34 ++++++++++++++++--- 13 files changed, 29 insertions(+), 77 deletions(-) -- 2.34.1