]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
xilinx: Fix logic when dfu_alt_info is generated
authorMichal Simek <michal.simek@amd.com>
Tue, 9 Aug 2022 14:32:52 +0000 (16:32 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 13 Sep 2022 09:32:48 +0000 (11:32 +0200)
Generate dfu_alt_info only when it is not defined.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/464e4b325c644e52a660df9cf44eeb4d80427f6a.1660055571.git.michal.simek@amd.com
board/xilinx/zynq/board.c
board/xilinx/zynqmp/zynqmp.c

index 63aff0474bea4f12dc65661a47e94e7567fc9e00..26ef0488358dcca5572a4bd50478097712a344d2 100644 (file)
@@ -168,8 +168,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
 {
        ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN);
 
-       if (!CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT) &&
-           env_get("dfu_alt_info"))
+       if (env_get("dfu_alt_info"))
                return;
 
        memset(buf, 0, sizeof(buf));
index 57259b60a02eaaea6f97f299aaa82287928fb6f7..29a6e3675f3c745dcc1658a5aaaa7a1b0d3c676b 100644 (file)
@@ -641,8 +641,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
 
        ALLOC_CACHE_ALIGN_BUFFER(char, buf, DFU_ALT_BUF_LEN);
 
-       if (!CONFIG_IS_ENABLED(EFI_HAVE_CAPSULE_SUPPORT) &&
-           env_get("dfu_alt_info"))
+       if (env_get("dfu_alt_info"))
                return;
 
        memset(buf, 0, sizeof(buf));