Message ID | 20250902152158.2285264-17-sjg@u-boot.org |
---|---|
State | New |
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826570; bh=t6/3z1h/TSyhLe924alP9zdLKKyfAeY3zynRO7Oq6ds=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=RytQZVjt5XyFQVhmLi0tqh6Bo21wyHCKmyyuffDqpbA+vS2vIaac56WiDCfXALuTY stCm5vLf09j59SXMoBEeWxIUlK5olR9h8tSgokg2PdakS4ELWqShciS6EUJXNn1Pf6 fWZVjqPajsLT5QKw2faTGQA4kscrjkB6TmUNISbFhL4+XR0i+ckSuu5LIkJvQV/AXE 45s9mo5qnsAWdLL8iroPrWyOF5evPzk0pkRzZZEk68xcKc5crE5iwg+b52N1lhyd61 dISPhBlGZFt91ypP31ICA4WUGQPaAdTI/8PJpFecfrrBB3JHu7CNUEfH8a1ZkRYWOh UYFIr0LElOd0w== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D6DE26787E for <u-boot-concept@u-boot.org>; Tue, 2 Sep 2025 09:22:50 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id LsqXUSjv7dDH for <u-boot-concept@u-boot.org>; Tue, 2 Sep 2025 09:22:50 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826570; bh=t6/3z1h/TSyhLe924alP9zdLKKyfAeY3zynRO7Oq6ds=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=RytQZVjt5XyFQVhmLi0tqh6Bo21wyHCKmyyuffDqpbA+vS2vIaac56WiDCfXALuTY stCm5vLf09j59SXMoBEeWxIUlK5olR9h8tSgokg2PdakS4ELWqShciS6EUJXNn1Pf6 fWZVjqPajsLT5QKw2faTGQA4kscrjkB6TmUNISbFhL4+XR0i+ckSuu5LIkJvQV/AXE 45s9mo5qnsAWdLL8iroPrWyOF5evPzk0pkRzZZEk68xcKc5crE5iwg+b52N1lhyd61 dISPhBlGZFt91ypP31ICA4WUGQPaAdTI/8PJpFecfrrBB3JHu7CNUEfH8a1ZkRYWOh UYFIr0LElOd0w== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BEE915FE1B for <u-boot-concept@u-boot.org>; Tue, 2 Sep 2025 09:22:50 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826569; bh=5bbb3avXdZCP+879XIHooXoo43maPs2nEHrMTqAgc1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d5foBfkFkY/cINv9L9McGzkgcxTpS+b7nDhivrvLa+HjjwknxiLqA/2ARcqi1fgQk h4SEDnBOExwqyHNvpYgc8sXDKUIhX6QVzfLa5T+LVab/pru7zTA5WsEApto0VUZSeO hNXyxVai8f0HR3dzXMZxahcCDf8ZVt2waTOzxg/oZUd8XvqOubuDfBzK4KDG7cVANv EF8Sy8OisbjsiwOPjRQ1t0QqZyhM9JXx4SJNdRzOYuCbZg2EB0+cEg5cEL6czUMfk1 Rm/9Nk5EAyOCEZUWZ+XvgrBZAFNAzmz1TFYLG/QW7zIgX1Geb5/9Il5Eq6GP0dVTRP q5sNXDlg1WXKg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5C51567867; Tue, 2 Sep 2025 09:22:49 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id Z807PeT9_GWZ; Tue, 2 Sep 2025 09:22:49 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826563; bh=UXem/5I/V7zyoPxeNLKJP9jLHS6kfksfSjzXjfTlpY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=coJqzYwMTiLoneI1k8st+6pMaju3mhq9Imwla7MfhTubmVT9m9x6UgJpS2WKnRrmg /Qk1z4r2PEBpATH5sdHVjhlXs8PEttzczeW+N4laBdBzm5P7bjOzobNofMgAgPp5Pz rpScqfMeJp+Tbkt6tAlc+TCbvlkrXI2uVgYs6grP/DhE+USBh839hOLKkooJzd4b0m k5kz97/IFT4zMIIBvaR1ARL+v1QaKGHsKvtrMZNNHubeQR22lLbsfjWHqpwzZ/mocT Vcyas29WkbSF7G8zEP2EEvUfSdFEQCnfStw9X93qVTXZl4S0HO6L/aX4lK+FfjpDQa gxlD7tgE5vmHw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 4DA175FE1B; Tue, 2 Sep 2025 09:22:43 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 2 Sep 2025 09:21:48 -0600 Message-ID: <20250902152158.2285264-17-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250902152158.2285264-1-sjg@u-boot.org> References: <20250902152158.2285264-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: PO72W5IK7VRJCV62R4XHLLWMQA3OB7ZH X-Message-ID-Hash: PO72W5IK7VRJCV62R4XHLLWMQA3OB7ZH X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 16/18] efi: app: Support proper reset options List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/PO72W5IK7VRJCV62R4XHLLWMQA3OB7ZH/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
efi: Improve integration of the app with a Shim environment
|
|
Commit Message
Simon Glass
Sept. 2, 2025, 3:21 p.m. UTC
From: Simon Glass <sjg@chromium.org> At present reset just exits the U-Boot app and returns to the caller. Add support for proper warm and cold resets, with 'hot' reset preserving the current behaviour. Signed-off-by: Simon Glass <sjg@chromium.org> --- lib/efi_client/efi_app.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/lib/efi_client/efi_app.c b/lib/efi_client/efi_app.c index 6b8b53fbb41..88e04f1084b 100644 --- a/lib/efi_client/efi_app.c +++ b/lib/efi_client/efi_app.c @@ -250,7 +250,17 @@ static void efi_exit(void) static int efi_sysreset_request(struct udevice *dev, enum sysreset_t type) { - efi_exit(); + struct efi_priv *priv = efi_get_priv(); + + switch (type) { + case SYSRESET_WARM: + priv->run->reset_system(EFI_RESET_WARM, EFI_SUCCESS, 0, NULL); + break; + case SYSRESET_HOT: + default: + efi_exit(); + break; + } return -EINPROGRESS; }