From patchwork Tue Mar 15 00:43:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 551360 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp3034747mag; Mon, 14 Mar 2022 17:43:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW2pOzWY8cXNkkrnLMrv/0P0OO+d74G+pVrimXag4T9bvHZxdI3sRt509CGVtQwryiOIg2 X-Received: by 2002:a50:f603:0:b0:416:ca73:1b65 with SMTP id c3-20020a50f603000000b00416ca731b65mr18564651edn.38.1647305022753; Mon, 14 Mar 2022 17:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647305022; cv=none; d=google.com; s=arc-20160816; b=v2OmlHjU90FT4i6o2/luJcJOH9uoy130BZRldjoCHlDBsoDrgQhKMqoFiap4OXFzR7 QuqZvSDGeuEQJSAkJsprt2McmfFLzz088tC6bObc8nwHy/xudTW+PdX/jNuIB7Z7n9L5 BLcZgcbTsu1tIRNuv4AXCxLZny1KVlfSUYRYCW+FoFzaL3U4DHuK1wlYMt1kV++DHH3d cRqX9tROFWUTPxal/jFpWkgxNWkCbrFv9cLgUbzHXMKGTJBd2KdkgmC7HS9taE1GJmWW cNuIpPFn8Y2OJPOwYBYmxyPFT7EHPLjnEVnhQWZBQBqtJyYyxU6O0wUDPJSsqpLJabnM epIw== 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:user-agent:message-id:date:subject:cc:to:from :dkim-signature; bh=JT8c3/WBZu5J6WVVMlqB28H0azBYW5i3DWbrDoRq1VI=; b=xzBKvgT6MMQl99AMyUiGc88/oFBu76cZslF+4pB/MluHbu/5MKwbXJVQDEApDbmii1 tndeFAz7daonOFlwMHnVnQyRaopzcioZojSEYB/BBnH/J61L6FINiA/Yz4tk08QbM9uk TsyUDQLZBiPv6018k0KvZemNBAyl/OFsGi90d2JGydSIB2+U8FMxYYnQR6t/9/SPoa9P ip1hFEJYaUzs91Ta+LQPEYbmLouOfl+R7sVWzO6QooRxQXUD1lOHvIAG8Kri12y07bbP kYG2ip1gG60AYCruwE3luWd4tcvIMHP9mtmSpmyq/b/MEVb1/R1EV+cLPHp99RLiE9i0 kCtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EI0du8RX; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id nd31-20020a170907629f00b006d9b2656021si10658933ejc.925.2022.03.14.17.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Mar 2022 17:43:42 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EI0du8RX; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE5CA83282; Tue, 15 Mar 2022 01:43:38 +0100 (CET) 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="EI0du8RX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F0CF3839A8; Tue, 15 Mar 2022 01:43:35 +0100 (CET) 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-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (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 E61048301E for ; Tue, 15 Mar 2022 01:43:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pf1-x429.google.com with SMTP id u17so14740507pfk.11 for ; Mon, 14 Mar 2022 17:43:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=JT8c3/WBZu5J6WVVMlqB28H0azBYW5i3DWbrDoRq1VI=; b=EI0du8RXtoiP9tIX9t8iG9BYaOyEWGWK82UmScnU3cHUdGeR2EX6Zx+vWLk4TutDiO bIsWr/3pIgcp7EcOljOOx1lwof1rgHwp5xuvLB0moEW2oJVbD0+jb1Qf2qSxxabF38p/ FMiXg05nH9IQ/4JAWLIOhQeCKPe/mt/Lv6WkJ+/khAyFn11mBzX7DwQH0noau+0UXj+X ZOgigvJeeo03JCmGHp/iDtl0djLYcinVum+BLMxeYsEYWIMlKqSK6PTkwabT+iSNsXBM Qh9907bXLQzq5nIbjwfD1SGS4XlX/4BiUMkZzqsfWpdj5+CW0zo5Q/YTtbssIX2KH2Gb enig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=JT8c3/WBZu5J6WVVMlqB28H0azBYW5i3DWbrDoRq1VI=; b=lAfdj5ZH32rJnioQMizYGOpIqn9GMomRFhf/FfzSeRnOxWmjSBZAuXNRMbhSo+X1jB ER7V28VPm9QiC1GyBSWrOJCRvdEr15HMyfOt8rOdcx6CjjvyHVRuwlxCLipBmUW9/gVf qwtA0qvzYu5ewg5nM9iQuXIR7i/IpocrVzMrRqY7nmVBDKsBllq0DUO7FoYvNCk22hSH W5/0MWgyWoN7awlpe/Jgc6/KGaqeI+aaPZocdDWKquD520uhqWSOQ4CmE+GeFbMrGl3z Z0BjavejHUHMr/Cyp5hor4hbZNv9T1CyU5aP0aPhDFoUDBJDbFYODLHtjvvDf67Q2/bG 2Peg== X-Gm-Message-State: AOAM530Zjl3E80wbRlTiRHNliX0dIdATeIL06xg6492FOS2s4mJ27Gp1 O9570RDYGgzK9MPDo0FRY1GNLuFX0rBOKg== X-Received: by 2002:a63:a45:0:b0:380:caf9:e50a with SMTP id z5-20020a630a45000000b00380caf9e50amr21820793pgk.141.1647305010131; Mon, 14 Mar 2022 17:43:30 -0700 (PDT) Received: from localhost.localdomain (113x37x226x201.ap113.ftth.ucom.ne.jp. [113.37.226.201]) by smtp.gmail.com with ESMTPSA id j67-20020a636e46000000b003740d689ca9sm17470849pgc.62.2022.03.14.17.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Mar 2022 17:43:29 -0700 (PDT) From: Masami Hiramatsu To: u-boot@lists.denx.de, Simon Glass Cc: Masami Hiramatsu , Patrick Delaunay , Patrice Chotard , Heinrich Schuchardt , Alexander Graf , AKASHI Takahiro , Bin Meng , Ilias Apalodimas , Jose Marinho , Grant Likely , Tom Rini , Etienne Carriere , Sughosh Ganu , Paul Liu Subject: [PATCH] efi_loader: Use sysreset instead of reset command Date: Tue, 15 Mar 2022 09:43:25 +0900 Message-Id: <164730500523.191671.13596780381116303195.stgit@localhost> X-Mailer: git-send-email 2.25.1 User-Agent: StGit/0.19 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.5 at phobos.denx.de X-Virus-Status: Clean Use sysreset_walk_halt() directly from reset-after-capsule-on-disk feature to reboot (cold reset) machine instead of using reset command interface, since this is not a command. Signed-off-by: Masami Hiramatsu Reviewed-by: Simon Glass --- lib/efi_loader/efi_capsule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c index 613b531b82..35907ad0d2 100644 --- a/lib/efi_loader/efi_capsule.c +++ b/lib/efi_loader/efi_capsule.c @@ -1150,9 +1150,9 @@ efi_status_t efi_launch_capsules(void) * UEFI spec requires to reset system after complete processing capsule * update on the storage. */ - log_info("Reboot after firmware update"); + log_info("Reboot after firmware update.\n"); /* Cold reset is required for loading the new firmware. */ - do_reset(NULL, 0, 0, NULL); + sysreset_walk_halt(SYSRESET_COLD); hang(); /* not reach here */