]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: Use dynamic delay to wait for TPM 2.0 self test result
authorAlexander Steffen <Alexander.Steffen@infineon.com>
Thu, 31 Aug 2017 17:18:57 +0000 (19:18 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 18 Oct 2017 15:28:46 +0000 (18:28 +0300)
commitc56f379cc8af60878a3b0235d47886fca5ace4b1
tree2bdb32f534cc2abaded5f21e8763b24814961fc0
parentff81a5971dad56d7a52f3b4c897640a3b4138bb6
tpm: Use dynamic delay to wait for TPM 2.0 self test result

In order to avoid delaying the code longer than necessary while still
giving the TPM enough time to execute the self tests asynchronously, start
with a small delay between two polls and increase it each round.

Signed-off-by: Alexander Steffen <Alexander.Steffen@infineon.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm2-cmd.c