Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3B99C433EF for ; Tue, 15 Mar 2022 00:43:41 +0000 (UTC) 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) 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-Google-Smtp-Source: ABdhPJxrZwR7ijL/zUWcEnDRolPpWm7XTIKIBF/a0MZIftPK+s0Y2amgqzwWK9958bEN4RS1IPsYjA== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 --- 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 */