Message ID | 20230125113904.517057-2-ilias.apalodimas@linaro.org |
---|---|
State | Accepted, archived |
Commit | 78fd2f54d5e1411b164a4757f5d8b307a3811eb5 |
Delegated to: | Heinrich Schuchardt |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=unVBc2y3; dkim-atps=neutral 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P221y6Lt5z23gM for <incoming@patchwork.ozlabs.org>; Wed, 25 Jan 2023 22:39:50 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 04F8385695; Wed, 25 Jan 2023 12:39:39 +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="unVBc2y3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A130C84EEF; Wed, 25 Jan 2023 12:39:27 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 6DD9B8563A for <u-boot@lists.denx.de>; Wed, 25 Jan 2023 12:39:25 +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=ilias.apalodimas@linaro.org Received: by mail-ed1-x531.google.com with SMTP id w11so6156450edv.0 for <u-boot@lists.denx.de>; Wed, 25 Jan 2023 03:39:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=OilGK1mftFnUBqVlsIktR0LqPpPfkUMxifI8HXfvKpo=; b=unVBc2y3WfzCpVddd5k5Z6xug9MxoSZSCf1eaImg7y2JIVsQVGIUIRMRjJIJTE0PvW x25J5HEpGV/5fgO2GdE+1d+d0aqwV+QyePWgBFIUv/kELh7GCp3tLPCs4VevedCpt/xL ymS+NH2T5e7Qo1ReuUClv59c8Rktbqgj1Jur2xqrzbme8TgMfLW0gO+2TKSAxN/UmF+8 YHsiRiRMLYBd3hBsQ+jpnQGPzacn5LO0AeSa76aS8nE1u+Qk1HAdBfFAYMipr0vUX84a R/0xOiZMheUm99DYI5Ug9ZV4EXfdB3S/pPCxMnZyPqRmPyMj8aCcqa1W96Isf1FxQwJ5 16dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=OilGK1mftFnUBqVlsIktR0LqPpPfkUMxifI8HXfvKpo=; b=ANzoeX3bF+bIe9JBANh74BshTWDk2odKAbfa6eyH9jtOzfhMMIvh08Kbl1gf8oe65a 7wr8SRsor8HzZ7AkYi88uDIHUbJmY5+s9bubo/Efggr0M7zSZPitgnaQD1yTt80ja3fl FtDZ9tszL9qpRVCNhFTN9YQC+AD4aIrFr2zQmRrySQBHzCXaJW1FMLgXnhoU0khadAnc UfJWja1/OvKnQ539mZEMmoiV9DTo6AGUkhOBP45ja7tl/TpjKuSuiuYxYGRkr6XKznoA 5V6E6aIb0mJ9dkU1eUtKE5rfMBBdLsoZK5vdmgvxNnUaPintzZ8+lhshj/j/1NHezxtO BkHg== X-Gm-Message-State: AFqh2kohLJkY4qFiidCVkEpjPeZBSzMAOMBVC7NaC7dq7S1aaIaFSixK NKjBseLl2Dao1YI/Ez3y9oq/j/701HD6kRd2 X-Google-Smtp-Source: AMrXdXujday87c5EMlc37s8bIe3oWyhui1rVhMucnaOnsgKzoRcI6AljFEodHnBzg97MhVwhBJM+ag== X-Received: by 2002:a05:6402:f20:b0:499:b672:ee3a with SMTP id i32-20020a0564020f2000b00499b672ee3amr39865916eda.12.1674646765139; Wed, 25 Jan 2023 03:39:25 -0800 (PST) Received: from localhost.localdomain ([2a02:85f:fc9d:e4b5:f0f6:e48b:8d50:ecb2]) by smtp.gmail.com with ESMTPSA id c10-20020a056402100a00b0049dfd6bdc25sm2261794edu.84.2023.01.25.03.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 03:39:24 -0800 (PST) From: Ilias Apalodimas <ilias.apalodimas@linaro.org> To: u-boot@lists.denx.de Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Sughosh Ganu <sughosh.ganu@linaro.org> Subject: [PATCH 2/2] efi_loader: use tpm_auto_start for the tpm device Date: Wed, 25 Jan 2023 13:39:04 +0200 Message-Id: <20230125113904.517057-2-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230125113904.517057-1-ilias.apalodimas@linaro.org> References: <20230125113904.517057-1-ilias.apalodimas@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
[1/2] tpm: add a function that performs selftest + startup
|
expand
|
diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c index 918e9a268641..d035a00d98ac 100644 --- a/lib/efi_loader/efi_tcg2.c +++ b/lib/efi_loader/efi_tcg2.c @@ -2422,7 +2422,7 @@ efi_status_t efi_tcg2_register(void) } /* initialize the TPM as early as possible. */ - err = tpm_startup(dev, TPM_ST_CLEAR); + err = tpm_auto_start(dev); if (err) { log_err("TPM startup failed\n"); goto fail;
A previous commit is adding a new tpm startup functions which initializes the TPMv2 and performs all the needed selftests. Since the TPM selftests might be needed depending on the requested lgorithm or functional module use that instead. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> --- lib/efi_loader/efi_tcg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)