summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2023-09-08 23:37:22 +0300
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-09-09 07:12:47 +0300
commitedce82c8228d3056a5075c460ffa9d600cf88e6d (patch)
tree099b927b9668472d6c64eae0563ca5f3d8247426
parent323e91a1832b7f10e8966b2fd43b71cf27abefa7 (diff)
downloadu-boot-edce82c8228d3056a5075c460ffa9d600cf88e6d.tar.xz
tpm: Fix autostart for TPM1.2 devices
On commit e663b2ff4ba2("tpm: Add 'tpm autostart' shell command") an autostart function was added for both TPM1.2 and 2.0 devices. Instead of correctly wiring the autostart command for TPM1.2 devices that patch mistakenly added it on 'tpm init' Fixes: commit e663b2ff4ba2("tpm: Add 'tpm autostart' shell command") Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--cmd/tpm-v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/tpm-v1.c b/cmd/tpm-v1.c
index 3b95c950cc..1b1efcd204 100644
--- a/cmd/tpm-v1.c
+++ b/cmd/tpm-v1.c
@@ -655,7 +655,7 @@ TPM_COMMAND_NO_ARG(tpm_physical_disable)
static struct cmd_tbl tpm1_commands[] = {
U_BOOT_CMD_MKENT(device, 0, 1, do_tpm_device, "", ""),
U_BOOT_CMD_MKENT(info, 0, 1, do_tpm_info, "", ""),
- U_BOOT_CMD_MKENT(init, 0, 1, do_tpm_autostart, "", ""),
+ U_BOOT_CMD_MKENT(autostart, 0, 1, do_tpm_autostart, "", ""),
U_BOOT_CMD_MKENT(init, 0, 1, do_tpm_init, "", ""),
U_BOOT_CMD_MKENT(startup, 0, 1,
do_tpm_startup, "", ""),