aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tpm/tpm_tis.c
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2011-11-11 12:57:06 -0500
committerRajiv Andrade <srajiv@linux.vnet.ibm.com>2011-11-16 06:43:03 -0500
commita927b8131794ee449b7f6666e7ab61301949b20f (patch)
tree05f341ab38243087faff74d0e56ecc6e880bd490 /drivers/char/tpm/tpm_tis.c
parent7f326ed7ff221a109bf89288bf6c8f0142e3e75c (diff)
tpm_tis: add delay after aborting command
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>
Diffstat (limited to 'drivers/char/tpm/tpm_tis.c')
-rw-r--r--drivers/char/tpm/tpm_tis.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
index 34832bc74649..d93bafde3120 100644
--- 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)
432out: 432out:
433 itpm = rem_itpm; 433 itpm = rem_itpm;
434 tpm_tis_ready(chip); 434 tpm_tis_ready(chip);
435 /* some TPMs need a break here otherwise they will not work
436 * correctly on the immediately subsequent command */
437 msleep(chip->vendor.timeout_b);
435 release_locality(chip, chip->vendor.locality, 0); 438 release_locality(chip, chip->vendor.locality, 0);
436 439
437 return rc; 440 return rc;