{"id":2224795,"url":"http://patchwork.ozlabs.org/api/covers/2224795/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/cover/20260418175814.5731-1-heinrich.schuchardt@canonical.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260418175814.5731-1-heinrich.schuchardt@canonical.com>","list_archive_url":null,"date":"2026-04-18T17:58:12","name":"[0/2] efi_loader: centralize messaging for efi_init_obj_list","submitter":{"id":82181,"url":"http://patchwork.ozlabs.org/api/people/82181/?format=json","name":"Heinrich Schuchardt","email":"heinrich.schuchardt@canonical.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/cover/20260418175814.5731-1-heinrich.schuchardt@canonical.com/mbox/","series":[{"id":500458,"url":"http://patchwork.ozlabs.org/api/series/500458/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=500458","date":"2026-04-18T17:58:12","name":"efi_loader: centralize messaging for efi_init_obj_list","version":1,"mbox":"http://patchwork.ozlabs.org/series/500458/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2224795/comments/","headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=HAA8J5iS;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=reject dis=none) header.from=canonical.com","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.b=\"HAA8J5iS\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=pass (p=reject dis=none)\n header.from=canonical.com","phobos.denx.de; spf=pass\n smtp.mailfrom=heinrich.schuchardt@canonical.com"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fyfcj2YdVz1yDF\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 03:58:29 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 2162783B99;\n\tSat, 18 Apr 2026 19:58:20 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id E133784258; Sat, 18 Apr 2026 19:58:18 +0200 (CEST)","from smtp-relay-canonical-0.canonical.com\n (smtp-relay-canonical-0.canonical.com [185.125.188.120])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id E1E56836AC\n for <u-boot@lists.denx.de>; Sat, 18 Apr 2026 19:58:16 +0200 (CEST)","from LT03.fritz.box (ip-176-199-115-125.um44.pools.vodafone-ip.de\n [176.199.115.125])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id DDA2740D39;\n Sat, 18 Apr 2026 17:58:15 +0000 (UTC)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1776535096;\n bh=Dzp5TQRpVAj1ZBqnDo0RqE0wxJP4qf/V1QQ6PJo+iHI=;\n h=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=HAA8J5iSlD2KhjqV3kctMPSXl26Tebhe6EKcFPXl4daZmEmQaxsi+XdkkKDmaVMe5\n qvplG8FJtG6EMxEyJmuG1uPzOzgmmoMjLi4nNFlbh/zZDB7Jch/FhbWMimmFvMkub9\n jfkq+YSjuU67YI+y5/EsFncV/Xp4DWuDDi5BoH9b0h0EzKpvCXmwQsNigMk0O94l2K\n H0uAxehEjGWqvH08EO3fyUnnWDv+kmRyzYitR6bfgPoSKN9W0pcWFFt9r0DE7icLcM\n 0rR7t6xRj0MT+FTWKLUtBOd6RCrvqmLLx7yv7198gBvrShvaLmZcPJZ2n3OojhoSxF\n +ezDqwo3EaHHZgJZHjcVLXJDPHYQduAWY2xpW8NSt1XfBeCC2wPuz+vhn+C67K+JKn\n owbSjXFVf1YLO70akYe8HxITMnf9rMLcBvqEUP3qQ7cyGNkiGD6TNRCaOFX047h3hu\n FNRmdFn4FRegBQrFp6eiSTnhvwYM4L2jgX08Zcp0L+s52wQAnXE8/8AO4x3lGJ/NRm\n Jhbrq5u/3bHBY2IXR7oeIxWJ9ucJVjCW9Nw146tqalu5ZKBmC18GSGbaU6KoR+7Xws\n yFblCNSxrurgO2VSswfUNnJ8POCDNS+HtTO0vcd6Y2mseeCBkqLFcSLP7W4+Ff2bKd\n HYLDqgrAT+LK1C4j9OEtyqtI=","From":"Heinrich Schuchardt <heinrich.schuchardt@canonical.com>","To":"Ilias Apalodimas <ilias.apalodimas@linaro.org>","Cc":"Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>,\n Mark Kettenis <kettenis@openbsd.org>,\n Patrice Chotard <patrice.chotard@foss.st.com>, Peng Fan <peng.fan@nxp.com>,\n Christian Marangi <ansuelsmth@gmail.com>,\n Sughosh Ganu <sughosh.ganu@arm.com>,\n Casey Connolly <casey.connolly@linaro.org>,\n =?utf-8?q?Vincent_Stehl=C3=A9?= <vincent.stehle@arm.com>,\n Adriano Cordova <adrianox@gmail.com>, Javier Tia <floss@jetm.me>,\n Jerome Forissier <jerome.forissier@arm.com>,\n Ying-Chun Liu <paul.liu@linaro.org>, u-boot@lists.denx.de,\n Heinrich Schuchardt <heinrich.schuchardt@canonical.com>","Subject":"[PATCH 0/2] efi_loader: centralize messaging for efi_init_obj_list","Date":"Sat, 18 Apr 2026 19:58:12 +0200","Message-ID":"<20260418175814.5731-1-heinrich.schuchardt@canonical.com>","X-Mailer":"git-send-email 2.53.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"If efi_init_obj_list() fails we cannot use the UEFI sub-system.\n\n* Instead of having messages for this everywhere write an error message\n  in efi_init_obj_list().\n* Always use (ret =! EFI_SUCCESS) when checking the return value of\n  efi_init_obj_list().\n* Remove the return code from the error message as it does not help\n  users to understand which initialization went wrong.\n\nIn do_bootefi() move the check to the start of the function.\n\nHeinrich Schuchardt (2):\n  cmd/bootefi: move efi_init_obj_list() to the start of do_bootefi\n  efi_loader: centralize messaging for efi_init_obj_list\n\n boot/bootmeth_efi_mgr.c      |  4 ++--\n cmd/bootefi.c                | 13 +++++--------\n cmd/bootmenu.c               |  6 +-----\n cmd/eficonfig.c              |  6 +-----\n cmd/efidebug.c               |  5 +----\n cmd/nvedit_efi.c             | 10 ++--------\n lib/efi_loader/efi_bootbin.c |  5 +----\n lib/efi_loader/efi_bootmgr.c |  5 +----\n lib/efi_loader/efi_setup.c   |  2 ++\n 9 files changed, 16 insertions(+), 40 deletions(-)"}