]> git.karo-electronics.de Git - linux-beck.git/commit
TPM: Issue TPM_STARTUP at driver load if the TPM has not been started
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 21 Nov 2012 20:54:33 +0000 (13:54 -0700)
committerKent Yoder <key@linux.vnet.ibm.com>
Tue, 5 Feb 2013 15:38:22 +0000 (09:38 -0600)
commitc584af1926b7626ef3bdab3354382cb2bd434d36
tree1d614a9e70d9a5195fa80c89f0027899c5af9531
parent07b133e6060ba9de6cf6265fb23f0de8ec78e51c
TPM: Issue TPM_STARTUP at driver load if the TPM has not been started

The TPM will respond to TPM_GET_CAP with TPM_ERR_INVALID_POSTINIT if
TPM_STARTUP has not been issued. Detect this and automatically
issue TPM_STARTUP.

This is for embedded applications where the kernel is the first thing
to touch the TPM.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Peter Huewe <peter.huewe@infineon.com>
Reviewed-by: Peter Huewe <peter.huewe@infineon.com>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.h