sandbox: tpm: Track whether the state is valid
authorSimon Glass <sjg@chromium.org>
Sun, 18 Jul 2021 20:18:02 +0000 (14:18 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 1 Aug 2021 15:05:24 +0000 (09:05 -0600)
commit0c0ddada656f9d642a5c3904bc225b2b4fb49fe4
treed8ce6c503940a76519dc7f17f8ed0a45e49a8532
parent46aed06cb7bbdc0e01c6c43a5d446d12e75e62b4
sandbox: tpm: Track whether the state is valid

Add checking as to whether the current TPM state is valid, so we can
implement reading/writing the state.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/tpm/tpm2_tis_sandbox.c