public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] efi_loader: Allow also empty capsule to be process
@ 2023-07-13 14:35 Michal Simek
  2023-07-18 15:41 ` Heinrich Schuchardt
  0 siblings, 1 reply; 16+ messages in thread
From: Michal Simek @ 2023-07-13 14:35 UTC (permalink / raw)
  To: u-boot, git; +Cc: Heinrich Schuchardt, Ilias Apalodimas

Empty capsule are also allowed to be process. Without it updated images
can't change their Image Acceptance state from no to yes.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 lib/efi_loader/efi_capsule.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c
index 7a6f195cbc02..93e83e5f04c3 100644
--- a/lib/efi_loader/efi_capsule.c
+++ b/lib/efi_loader/efi_capsule.c
@@ -752,7 +752,8 @@ efi_status_t EFIAPI efi_update_capsule(
 		log_debug("Capsule[%d] (guid:%pUs)\n",
 			  i, &capsule->capsule_guid);
 		if (!guidcmp(&capsule->capsule_guid,
-			     &efi_guid_firmware_management_capsule_id)) {
+			     &efi_guid_firmware_management_capsule_id) ||
+		    fwu_empty_capsule(capsule)) {
 			ret  = efi_capsule_update_firmware(capsule);
 		} else {
 			log_err("Unsupported capsule type: %pUs\n",
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-07-27  0:46 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-13 14:35 [PATCH] efi_loader: Allow also empty capsule to be process Michal Simek
2023-07-18 15:41 ` Heinrich Schuchardt
2023-07-19  6:28   ` Michal Simek
2023-07-20  5:49     ` AKASHI Takahiro
2023-07-20  6:07       ` Michal Simek
2023-07-20  6:36         ` Sughosh Ganu
2023-07-20  7:56           ` Michal Simek
2023-07-20  8:45             ` Sughosh Ganu
2023-07-20  9:26               ` Michal Simek
2023-07-20  9:48                 ` Sughosh Ganu
2023-07-20 20:42                   ` Heinrich Schuchardt
2023-07-21  4:48                     ` AKASHI Takahiro
2023-07-26 13:07                       ` Ilias Apalodimas
2023-07-26 16:36                         ` Michal Simek
2023-07-27  0:46                           ` AKASHI Takahiro
2023-07-26 12:54   ` Ilias Apalodimas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox