]> git.baikalelectronics.ru Git - kernel.git/commit
TPM: Long default timeout fix
authorRajiv Andrade <srajiv@linux.vnet.ibm.com>
Fri, 12 Nov 2010 21:30:02 +0000 (22:30 +0100)
committerJames Morris <jmorris@namei.org>
Mon, 24 Jan 2011 00:22:48 +0000 (11:22 +1100)
commit2a0aa9dbfa0bbbbd9f4662ddd60422a681a37e8f
tree0b32c7b91763144ea587e2965f5a401eea3d537c
parent1259bc5ff374ad3ec73274a9850b1cf243520e0d
TPM: Long default timeout fix

If duration variable value is 0 at this point, it's because
chip->vendor.duration wasn't filled by tpm_get_timeouts() yet.
This patch sets then the lowest timeout just to give enough
time for tpm_get_timeouts() to further succeed.

This fix avoids long boot times in case another entity attempts
to send commands to the TPM when the TPM isn't accessible.

Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
drivers/char/tpm/tpm.c