]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] tpm: command duration update
authorKylene Jo Hall <kjhall@us.ibm.com>
Sat, 22 Apr 2006 09:37:38 +0000 (02:37 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 22 Apr 2006 16:19:54 +0000 (09:19 -0700)
commitd834e9094044c5b2836a922ca3565cef0d532f44
treeda87b5f7547ae840fd797d2e3ddc71e5c7cb3307
parentf782d807f57cf68b34e880257debb4152e93fce2
[PATCH] tpm: command duration update

With the TPM 1.2 Specification, each command is classified as short, medium or
long and the chip tells you the maximum amount of time for a response to each
class of command.  This patch provides and array of the classifications and a
function to determine how long the response should be waited for.  Also, it
uses that information in the command processing to determine how long to poll
for.  The function is exported so the 1.2 driver can use the functionality to
determine how long to wait for a DataAvailable interrupt if interrupts are
being used.

Signed-off-by: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tpm/tpm.c
drivers/char/tpm/tpm.h