summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2023-01-25 14:06:03 +0300
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2023-02-28 10:44:22 +0300
commit78fd2f54d5e1411b164a4757f5d8b307a3811eb5 (patch)
tree374cb189ab0c4d926ae0edd76975b7b5dda6f99e /lib
parenta595be3a4af116a9559a3868f81dcad55d01b8dd (diff)
downloadu-boot-78fd2f54d5e1411b164a4757f5d8b307a3811eb5.tar.xz
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 <sjg@chromium.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_tcg2.c2
1 files changed, 1 insertions, 1 deletions
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;