From patchwork Mon Aug 12 20:56:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 818572 Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp3263wrm; Mon, 12 Aug 2024 13:57:00 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXvdQHoTl7F3TZ00zWwt6GPHuHmgM6vjPB/mtsjMpBCYoYff0uH5tZ/FJmInRpmrlwndq39sBHMMwpYt5XJMGXA X-Google-Smtp-Source: AGHT+IGj1KjUv1zq4AowxRx5RO6iVwzWUZ9g3VqYsrZWrzueGFkt5iGtvESlNpfEFYFZTc29p0fg X-Received: by 2002:a17:906:bc0e:b0:a7a:8cb9:7491 with SMTP id a640c23a62f3a-a80ed2c8150mr106054866b.54.1723496220376; Mon, 12 Aug 2024 13:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723496220; cv=none; d=google.com; s=arc-20160816; b=mqFlhXe9YChxFZEakUmJp24cGf+/RnMytqE8eK7K0pHwWXAGv4EevDg/KYIY/vjjM6 58GKRE5wDCPbAZuBywexVjc3OJuGPCn51AKPP+LcWavgIMJIi3QiQJpRyDeDDicc1+xC cm9fKdn+DLxRJR2v24fouxcFpc3GmrwtPHSgG9Z37usTZJNVnvJfV4cZSZq6c3wo3pDe QORzqR0EWyI2uo3xlzN7NsVqM9XMJ6gAe0XkxszN9Yutm5YxcZodigPV6ndSpp3Dka3J Wwv/kqYVcSrNAGcUn4kzGvg/1PrFn6yejGIQ9w/KiUi09rn5kQPLO6/yXK9DEwVuBDtH 1a4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dSPhPLrkOupbWWvPT5Cpp0+hW/YWwfV0IjHdf2GnvOk=; fh=ZZ7uhUNHtxDJ7+Os7cexURg5d6/Dwl6zXXrkcHtlEXk=; b=P1gqZNaJMIsoHp6jOMnxjeoW/KJ8oTBDpxw4MffK8n9jdYcLVm3ZJqxGaEwfIAwD6V yMt359lTx6l92fqgdk+2IuDxkCI1xYJGWNwJw3IeyWXhnz1ZgMymMSjW1IesfkhJBI7l MxifyYxCQ/BS7mbgonSq32tCYCNERd6Il8hVfg72zjz3QBGvdnGVduSU/ago3XAurZaT CL+B1dTLxIf+z+/806Nx7hNnTkI6SY2miyphJTuQEgWZ5yhY6Q5In4KVsYkniZbhFD4K l1Zq2Av3F0Cs/DFxhASp8TJ0YlnWOfbOTxF2BUYaPaoMgxaVlcwHYPyQygtYS6fTrmuL +tUA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YTkGHCjd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a80f411bab7si11364366b.364.2024.08.12.13.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Aug 2024 13:57:00 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YTkGHCjd; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7551386BF1; Mon, 12 Aug 2024 22:56:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="YTkGHCjd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 997C1888C1; Mon, 12 Aug 2024 22:56:47 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E6EAE88703 for ; Mon, 12 Aug 2024 22:56:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a7a9cf7d3f3so557249666b.1 for ; Mon, 12 Aug 2024 13:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723496204; x=1724101004; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dSPhPLrkOupbWWvPT5Cpp0+hW/YWwfV0IjHdf2GnvOk=; b=YTkGHCjdM9aFFVpmTXWBRB15dy8iTOVTKDXSBWXiOd0Qj2z2RHh2+DPHyj5k2yQT5z hpHfGjoNoLWlHPXKZYIPGPji4UdMuT4H65YA4PisnSu/BzLdk2GVx73m+eHwbSIizl7Q gKHfUEUSDY/epiaOUeN2Q/XQ2HA45gc3ZB5whXpxBsXdb8mdT6X5pKeHvlJljSu4vVPT asmcj5y1eNQoo7H62K06pMhe+BLjJc4t07WWVHfqOOap2iHEZ1Lxr25suzmoG17tgLNi kHyHSTefW2j9u5wsFDspSnscWqSTpxIOPW0Z0VVQltLo0MTkafyzLSOyFGrYC6vFGjuX /5uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723496204; x=1724101004; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dSPhPLrkOupbWWvPT5Cpp0+hW/YWwfV0IjHdf2GnvOk=; b=rj9D5po8ER5RgdL+/XkSsR/ugCe5pOwM/AaHmVkLC48dXDQacfXrmeOupkyEuEgbh0 q/bayL3Oe0SAp2EJQyAHFzqy8okZm0j2Fqp+z4NtxL+1U9SLODsH2XLGs2iq0dmxOs61 N61xRcr3KblBbd1uLhkFCNLZDe3uN2Xx8wQ2LNHIZ853FYly8zPVMLhpKtxdjXId+gVW jnX4691p8QfuVix0nfCBmadbYo4z9bhTKAnYkxul5oD84zFu/lKHj+kuB6K9abXGDfdE wiceTYI4fKFuLJzxG/ictZ8Uqny9PL8k8nAA2mOprb04QBDT7DoFotEqnt09PuHsQKZ+ y2ZA== X-Forwarded-Encrypted: i=1; AJvYcCVlmGdIGaFvsTBbCIuXszLB7PJfiuJTDjdu5aTtrJD8KQApIRG9psH/eCBbt9l8OsW9VcnR5ki7iQvwaTW55Wzx1o4ypw== X-Gm-Message-State: AOJu0YxMkj0Sn2wfObStkTkKIBNzV30JjDGNZWo6u1A11Es7NKux6/AY MQQGZI2XEIcMWGZ0MOXxoxLjZMlq67KJzhykJUfP1HVqFX1/6I9hvneiXMrpMUY= X-Received: by 2002:a17:906:f599:b0:a77:db36:1ccf with SMTP id a640c23a62f3a-a80ed2c87c5mr97191066b.42.1723496204041; Mon, 12 Aug 2024 13:56:44 -0700 (PDT) Received: from localhost.localdomain (ppp046103060252.access.hol.gr. [46.103.60.252]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a80f411b51esm9491966b.134.2024.08.12.13.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Aug 2024 13:56:43 -0700 (PDT) From: Ilias Apalodimas To: xypron.glpk@gmx.de Cc: kojima.masahisa@socionext.com, u-boot@lists.denx.de, akashi.tkhro@gmail.com, Ilias Apalodimas Subject: [PATCH 2/3] efi_loader: rename efi_bootmgr_image_return_notify Date: Mon, 12 Aug 2024 23:56:37 +0300 Message-ID: <20240812205638.1732159-2-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240812205638.1732159-1-ilias.apalodimas@linaro.org> References: <20240812205638.1732159-1-ilias.apalodimas@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean We use this event when returning from an EFI HTTP booted image. The name is a bit confusing since it suggests we always run it, rename it to make it clearer Signed-off-by: Ilias Apalodimas Reviewed-by: Simon Glass --- lib/efi_loader/efi_bootmgr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/efi_loader/efi_bootmgr.c b/lib/efi_loader/efi_bootmgr.c index 181fc8775b96..03cdee15017d 100644 --- a/lib/efi_loader/efi_bootmgr.c +++ b/lib/efi_loader/efi_bootmgr.c @@ -421,13 +421,13 @@ efi_status_t efi_bootmgr_release_uridp(struct uridp_context *ctx) } /** - * efi_bootmgr_image_return_notify() - return to efibootmgr callback + * efi_bootmgr_http_return() - return to efibootmgr callback * * @event: the event for which this notification function is registered * @context: event context */ -static void EFIAPI efi_bootmgr_image_return_notify(struct efi_event *event, - void *context) +static void EFIAPI efi_bootmgr_http_return(struct efi_event *event, + void *context) { efi_status_t ret; @@ -533,7 +533,7 @@ static efi_status_t try_load_from_uri_path(struct efi_device_path_uri *uridp, /* create event for cleanup when the image returns or error occurs */ ret = efi_create_event(EVT_NOTIFY_SIGNAL, TPL_CALLBACK, - efi_bootmgr_image_return_notify, ctx, + efi_bootmgr_http_return, ctx, &efi_guid_event_group_return_to_efibootmgr, &event); if (ret != EFI_SUCCESS) {