summaryrefslogtreecommitdiff
path: root/test/cmd/command.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-04-02 10:28:10 +1300
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2025-04-14 22:59:01 +0300
commit275777bc94cf1673b38d4d5438dfb07df7902603 (patch)
tree92dd4787c4252d3f90fd3de48fb33a86318fc410 /test/cmd/command.c
parent739ad58dbee874a3ad3bddd116e995212a254e07 (diff)
tpm: cr50: Support opening the TPM multiple times
The tpm_auto_start() function is used in tests and assumes that it can open the TPM even if it is already open and a locality claimed. The cr50 driver does not use the common TPM2 TIS code so lacks a check for the is_open field of struct tpm_chip and in fact it doesn't use that struct. Add an equivalent check to cr50_i2c_open(). This fixes all init sequences on that TPM -- e.g 'tpm init && tpm init' or 'tpm autostart && tpm init' used to hang 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>
Diffstat (limited to 'test/cmd/command.c')
0 files changed, 0 insertions, 0 deletions