[PATCH] tpm: cr50: Support opening the TPM multiple times

2025-04-05 Thread Simon Glass
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 equi

Re: [PATCH] tpm: cr50: Support opening the TPM multiple times

2025-04-05 Thread Ilias Apalodimas
Hi Simon, On Wed, 2 Apr 2025 at 00:28, Simon Glass wrote: > > 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 o

Re: [PATCH] tpm: cr50: Support opening the TPM multiple times

2025-04-02 Thread Simon Glass
HI Ilias, On Wed, 2 Apr 2025 at 19:20, Ilias Apalodimas wrote: > > Hi Simon, > > On Wed, 2 Apr 2025 at 00:28, Simon Glass wrote: > > > > 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