projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f326ed
)
tpm_tis: add delay after aborting command
author
Stefan Berger
<stefanb@linux.vnet.ibm.com>
Fri, 11 Nov 2011 17:57:06 +0000
(12:57 -0500)
committer
Rajiv Andrade
<srajiv@linux.vnet.ibm.com>
Wed, 16 Nov 2011 11:43:03 +0000
(09:43 -0200)
This patch adds a delay after aborting a command. Some TPMs need
this and will not process the subsequent command correctly otherwise.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
drivers/char/tpm/tpm_tis.c
patch
|
blob
|
history
diff --git
a/drivers/char/tpm/tpm_tis.c
b/drivers/char/tpm/tpm_tis.c
index 34832bc746494b3e803925ad4745304a5e33fdc7..d93bafde31206d2a7984c6b589d6c17707abd9ff 100644
(file)
--- a/
drivers/char/tpm/tpm_tis.c
+++ b/
drivers/char/tpm/tpm_tis.c
@@
-432,6
+432,9
@@
static int probe_itpm(struct tpm_chip *chip)
out:
itpm = rem_itpm;
tpm_tis_ready(chip);
+ /* some TPMs need a break here otherwise they will not work
+ * correctly on the immediately subsequent command */
+ msleep(chip->vendor.timeout_b);
release_locality(chip, chip->vendor.locality, 0);
return rc;