]> git.karo-electronics.de Git - karo-tx-linux.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)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:57:53 +0000 (11:57 -0700)
commitfdd7c779cc992bd5d0930e381b8023907cb750f0
tree71e5b3ec7ac0e9852647a2b29f154394e4ba28e9
parent41922ad4ddb29e0dff33a645d4d697895acb14ce
TPM: Long default timeout fix

commit c4ff4b829ef9e6353c0b133b7adb564a68054979 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/char/tpm/tpm.c