From: Ilias Apalodimas Date: Wed, 25 Jan 2023 11:06:03 +0000 (+0200) Subject: efi_loader: use tpm_auto_start for the tpm device X-Git-Tag: v2025.01-rc5-pxa1908~1023^2~42^2~4 X-Git-Url: http://git.dujemihanovic.xyz/projects?a=commitdiff_plain;h=78fd2f54d5e1411b164a4757f5d8b307a3811eb5;p=u-boot.git efi_loader: use tpm_auto_start for the tpm device 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 algorithm or functional module use that instead. Reviewed-by: Simon Glass Signed-off-by: Ilias Apalodimas --- diff --git a/lib/efi_loader/efi_tcg2.c b/lib/efi_loader/efi_tcg2.c index 2dcc317157..a83ae7a46c 100644 --- a/lib/efi_loader/efi_tcg2.c +++ b/lib/efi_loader/efi_tcg2.c @@ -2495,7 +2495,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;