From: Ilias Apalodimas Date: Fri, 8 Sep 2023 20:37:22 +0000 (+0300) Subject: tpm: Fix autostart for TPM1.2 devices X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~13^2~5 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=e2c77c9c175e41eeb3f92a1ff1bd26e421ebb342;p=uboot.git tpm: Fix autostart for TPM1.2 devices On commit a79988e9b223("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 a79988e9b223("tpm: Add 'tpm autostart' shell command") Signed-off-by: Ilias Apalodimas Reviewed-by: Heinrich Schuchardt --- 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, "", ""),