Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a927b813 authored by Stefan Berger's avatar Stefan Berger Committed by Rajiv Andrade
Browse files

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: default avatarStefan Berger <stefanb@linux.vnet.ibm.com>
parent 7f326ed7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;