tpm: Introduce function to poll for result of self test
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 11 Nov 2011 17:57:04 +0000 (12:57 -0500)
committerRajiv Andrade <srajiv@linux.vnet.ibm.com>
Wed, 16 Nov 2011 11:42:59 +0000 (09:42 -0200)
commit68d6e6713fcb2ea6278661aaaf5f1c9c821b3751
treefb02641cb1941a6d9c23ac3df37d6aafcd4f7f3a
parentd97c6ade5926afb6d52df36c33a3491d62cd0dc0
tpm: Introduce function to poll for result of self test

This patch introduces a function that runs the TPM_ContinueSelfTest()
function and then polls the TPM to check whether it finished the selftest
and can receive new commands.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_tis.c