Messages in this thread |  | | Date | Thu, 4 Oct 2012 12:02:47 -0600 | | From | Jason Gunthorpe <> | | Subject | Re: [tpmdd-devel] [PATCH] TPM: Issue TPM_STARTUP at driver load if the TPM has not been started |
| |
On Thu, Oct 04, 2012 at 12:41:15PM -0500, Kent Yoder wrote:
> I'd rather see us just track the state and do the right thing > here. If we don't get invalid postinit if we call tpm_startup during > tpm_tis_init/tpm_tis_i2c_init, then set a flag we switch on here.
At least on my platform it is possible for tpm_tis_init to skip the TPM_STARTUP path I added if kexec has been used, so it is not a reliable indicator that the platform does/does not support the TPM.
Directly checking if the TPM has been started on resume seems fool proof to me?
Jasson
|  |