提交 a927b813 编写于 作者: S Stefan Berger 提交者: Rajiv Andrade

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: NStefan Berger <stefanb@linux.vnet.ibm.com>
上级 7f326ed7
...@@ -432,6 +432,9 @@ static int probe_itpm(struct tpm_chip *chip) ...@@ -432,6 +432,9 @@ static int probe_itpm(struct tpm_chip *chip)
out: out:
itpm = rem_itpm; itpm = rem_itpm;
tpm_tis_ready(chip); 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); release_locality(chip, chip->vendor.locality, 0);
return rc; return rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册