From patchwork Fri Dec 17 19:40:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1570315 X-Patchwork-Delegate: xypron.glpk@gmx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=MLmUDAuU; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JFzt70xJRz9sXM for ; Sat, 18 Dec 2021 06:43:11 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AAB468377E; Fri, 17 Dec 2021 20:42:20 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="MLmUDAuU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C877A83731; Fri, 17 Dec 2021 20:41:39 +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.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) (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 0C64183774 for ; Fri, 17 Dec 2021 20:41:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd31.google.com with SMTP id x10so4478246ioj.9 for ; Fri, 17 Dec 2021 11:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3BC3uL0V9+yjE+w0+VXh8roqsABK+9JyZFDTE5SHYqE=; b=MLmUDAuUfadQeaMDVRLg/UrduYNfK2DgEuNJlZhVh+baWiojErH7gZUsH+tRBc6DH0 HrmtZqvdZCu3QVPTOHaSIy7X081UjhrGCDx+BLVGwGN+sUi2+GS9etb2jWvdTRImE53b eik5f0qnmxRtuPWkbYS/Y4xJDnWeHCYZ0Luk4= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=3BC3uL0V9+yjE+w0+VXh8roqsABK+9JyZFDTE5SHYqE=; b=zFIM+bPdAeVm30arZlLcfcG7rtu8BRcamw/A7X8vs94+62pQCNs9f1/OnV2eZwiw4m R+Pr2mc6gJC9I44L5vyr53b1zX36jf9AMhXUjejS5aIVE1Zi9KpwSRMHZdhpoy0/tw4C 4oDzeiYFsYkbA4P1nLH2IlmDo3T0E9pO5065VwNWNliFTkr6NdV0kIjzkcmLZ+Ys2KiT rIeYi/d4voyfZqVYMo1rx4K00orPbo2wmC6smzccV5pdWQ5sCbL6RyFhm3zGtGIwV8EJ OVGleJcOk30UZopHb8jBoxbIisfw3B7pzpXcAfpqmHOdQPeb3t3/APabz7RX7nmIjlDA jlWg== X-Gm-Message-State: AOAM532fh/6RBJS1O2jcG525YefuG6t8W53f945/mhnpBlJ1ydPa6uRb 0NO+Xi7eIpYkO6yPKuVEnOBKGyx3xO3Jww== X-Google-Smtp-Source: ABdhPJzdvjoL/+naAJOLX8+XdcHZxHVfSr11CibKh2ZD5C3E4JL/XpsTRJLF7tvcH7V9QPcGpJJr0w== X-Received: by 2002:a05:6638:3891:: with SMTP id b17mr3131155jav.100.1639770088720; Fri, 17 Dec 2021 11:41:28 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id w19sm6079605iov.12.2021.12.17.11.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 11:41:28 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Heinrich Schuchardt , Tom Rini , Ilias Apalodimas , Christian Melki , Simon Glass , Alexander Graf Subject: [PATCH v6 11/27] efi: Fix ll_boot_init() operation with the app Date: Fri, 17 Dec 2021 12:40:43 -0700 Message-Id: <20211217194059.858580-8-sjg@chromium.org> X-Mailer: git-send-email 2.34.1.173.g76aa8bc2d0-goog In-Reply-To: <20211217194059.858580-1-sjg@chromium.org> References: <20211217194059.858580-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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.2 at phobos.denx.de X-Virus-Status: Clean This should return false when the EFI app is running, since UEFI has done the required low-level init. Fix it. Signed-off-by: Simon Glass --- (no changes since v1) include/init.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/init.h b/include/init.h index f2cd46dead0..3ce7b8b95bd 100644 --- a/include/init.h +++ b/include/init.h @@ -15,7 +15,7 @@ #include /* Avoid using CONFIG_EFI_STUB directly as we may boot from other loaders */ -#ifdef CONFIG_EFI_STUB +#ifdef CONFIG_EFI #define ll_boot_init() false #else #include