From patchwork Thu Jan 26 08:18:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 647079 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp122451pvb; Thu, 26 Jan 2023 00:19:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXujabLDlfOOW3bzdTyp9rILj7OpQhrpnJB8BQkc33Ht71/xDd47vcbY0eSO6bqCzOdDd82t X-Received: by 2002:a05:6808:1825:b0:35e:401a:7824 with SMTP id bh37-20020a056808182500b0035e401a7824mr22941916oib.51.1674721154933; Thu, 26 Jan 2023 00:19:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674721154; cv=none; d=google.com; s=arc-20160816; b=nzjAbGjaX8z2SMFYxD3gfv70/zFPZFhLwrF3KEy0WZQLqyFpFD+yAxz6kcrt6robEk JdwqipAQkfQhlBxZqqmbb/no12CIpgcD9yUzJGzUhYIoZzb1ng/wIJQei5bjvx0vVmTY w7iruevicE3OegnZQ2BjpF+eKx+lWNMtIWDVgFP8zkNN4xPZD/yHqJHsPf9byNHLz0uv dMJDJGijx6Vaw1Aia8MPgoCyXEhQDfTQwI9mBNuK/5PXYpSYDR2V7fogIKv+E0SgwZ3s gXRNPIh9VLUPGclMoqqCI2zXOpf+QlcG0nW6dBWaXHauyucg4vHatpNYlf50nr3G0zz8 6zIw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5pJCKOiku0abit5sZWiA9Y2rIoMEn5vcUu1iEWqoYRg=; b=xAMxDHnJz6FC0xiW1TydM7KBNKqZZ4SBbLmeqsIPcXRI6l+dmAc7d2ZcU0R70s9Fmj iYaiao45cBs27omp6dM9S/M8GCmT5Znl1bkTc9L+i0SCG3XHwCMrb7U67BO906B3BQEA r4vI7MWVCjQUWl6eRrjDema9XlrrLpj5uaqb2SGcvazC6KOu8qz3aROzcSBz4IdLFUwv d0Nw4rtvg16+22F6boBZSrqOnw54RjpCicN1tJP2Lv+K7epJED+U30hurGGv78QaL86T IupuQLNRFQQhcClwdGt1e9CPHY9EZV7QNtvKJdAkKgMFThk/LxhSLg4dwArPkU6f6WQF 4WBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwka6VKa; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id bj25-20020a056808199900b0036bf35f476csi875276oib.238.2023.01.26.00.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 00:19:14 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwka6VKa; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 E003B856D7; Thu, 26 Jan 2023 09:19:00 +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="dwka6VKa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 79DDC84DDE; Thu, 26 Jan 2023 09:18:57 +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-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 55AA0856CA for ; Thu, 26 Jan 2023 09:18:55 +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-ej1-x634.google.com with SMTP id hw16so2978891ejc.10 for ; Thu, 26 Jan 2023 00:18:55 -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=5pJCKOiku0abit5sZWiA9Y2rIoMEn5vcUu1iEWqoYRg=; b=dwka6VKakTOu9s3mcmdqdCq6aKj+hZ1fGltBlywymL3Nb0XkEA+Z/hiYS8qiKnIW9Y w/vhOa+VkGU9R5doZtHraT98ok7NehibEGsrQYGEFRto49dIXCdYSY3oChq+Q59RsFrZ XSC0dp59DDlq7UgiL1E+kLjbTih8SvUp2rX0G+PVw1Du48j9uvGYjnEZh8DN5CopLcDH F7H8j4VysH8k7PrRHq7xttVErXXVHHpENaLZZcaVSMrsQDSTptH9thC6qpskep+/hBLX kj9+SPtI/GmTt8+41/t4v8zIufYC0vI79W/r7SNh5QtGjzI0GOyWVPDn2l/zb4OEcuoM 4ShQ== 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=5pJCKOiku0abit5sZWiA9Y2rIoMEn5vcUu1iEWqoYRg=; b=EliGnI2eIY9TIFQtkdZ65WN0eONF23CZ0098QyDCqTuN3AqheyCB9m2iC+sr5KXhpd edIzSBSYF7e4lDsZ6ZY1hWSnWkVBg0FQdicy2YT/mAlUYZMHKCpi8Hc7y9PYPmhn5uGL z1xh9mtR4v2mKNPSzBtIsfdxQ+6YRD9tjndM3UIUwkQ3r0KAAqFAw1w/0x3IprKIqHxH VeJjMt/wKjBXlgWjhyABxcTXaaaspUwn0eGs01UJupIZyxV9d4Rn+Qz0r2Y4h4b6hc23 3QSno+smNkUs4y9A56zflZMtpSnIZmDEO7bNdu7v30Q2DDODzKQ2EM51yhd14ETDdYUU L5iA== X-Gm-Message-State: AFqh2kqO94ecgpiSIJxZLBpYh5kWJnX38MfE8lZlUIIQ9xcL5LEDW68Q c/egeCKkSBF/yV4ecodFUY6LkgnTZai3XqES X-Received: by 2002:a17:907:6c16:b0:84d:4493:c83f with SMTP id rl22-20020a1709076c1600b0084d4493c83fmr40818766ejc.6.1674721134896; Thu, 26 Jan 2023 00:18:54 -0800 (PST) Received: from localhost.localdomain ([2a02:85f:fc9d:e4b5:f55b:b0a7:979d:4715]) by smtp.gmail.com with ESMTPSA id n18-20020a1709067b5200b00878530f5324sm237575ejo.90.2023.01.26.00.18.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 00:18:54 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de Cc: eajames@linux.ibm.com, Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Sughosh Ganu Subject: [PATCH 2/2 v3] efi_loader: use tpm_auto_start for the tpm device Date: Thu, 26 Jan 2023 10:18:44 +0200 Message-Id: <20230126081844.591148-2-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230126081844.591148-1-ilias.apalodimas@linaro.org> References: <20230126081844.591148-1-ilias.apalodimas@linaro.org> 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.6 at phobos.denx.de X-Virus-Status: Clean 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 Reviewed-by: Simon Glass --- No changes since v1 lib/efi_loader/efi_tcg2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.38.1 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;