]> git.baikalelectronics.ru Git - uboot.git/commit
tpm: sandbox: Allow init of TPM in a different phase
authorSimon Glass <sjg@chromium.org>
Wed, 31 Aug 2022 03:05:35 +0000 (21:05 -0600)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Sat, 3 Sep 2022 13:58:56 +0000 (16:58 +0300)
commitd48cfbfd9ce6bde56343bc19486686d07e689739
tree69ce34230fbcb2226bd70d7991a8a22b2600e5cf
parent9cb7acb88ed0b592d5da4940896dabcde6915071
tpm: sandbox: Allow init of TPM in a different phase

At present the emulator assumes that the TPM is inited in the same phase
where it is used. But in fact SPL may init the TPM, so we don't want to
complain when U-Boot proper later uses it. Remove this check.

It might be best to save this information into the device state for the
TPM, so that we can make sure the TPM was inited at some point. For now,
this seems good enough.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tpm/tpm2_tis_sandbox.c