diff options
author | Leendert van Doorn <leendert@watson.ibm.com> | 2006-04-22 05:38:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-22 12:19:54 -0400 |
commit | 27084efee0c3dc0eb15b5ed750aa9f1adb3983c3 (patch) | |
tree | aa9570006e4e44e3f9a1c2c1960ed025a790711c /drivers/char/tpm/tpm.c | |
parent | 08e96e486dd1345ae0ad70247387d0d4fd346889 (diff) |
[PATCH] tpm: driver for next generation TPM chips
The driver for the next generation of TPM chips version 1.2 including support
for interrupts. The Trusted Computing Group has written the TPM Interface
Specification (TIS) which defines a common interface for all manufacturer's
1.2 TPM's thus the name tpm_tis.
Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
Signed-off-by: Kylene Hall <kjhall@us.ibm.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/tpm/tpm.c')
-rw-r--r-- | drivers/char/tpm/tpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm.c b/drivers/char/tpm/tpm.c index 24c4423d4851..150c86af7809 100644 --- a/drivers/char/tpm/tpm.c +++ b/drivers/char/tpm/tpm.c | |||
@@ -390,6 +390,9 @@ static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf, | |||
390 | goto out; | 390 | goto out; |
391 | } | 391 | } |
392 | 392 | ||
393 | if (chip->vendor.irq) | ||
394 | goto out_recv; | ||
395 | |||
393 | stop = jiffies + tpm_calc_ordinal_duration(chip, ordinal); | 396 | stop = jiffies + tpm_calc_ordinal_duration(chip, ordinal); |
394 | do { | 397 | do { |
395 | u8 status = chip->vendor.status(chip); | 398 | u8 status = chip->vendor.status(chip); |