OSDN Git Service

tpm_tis: Resend command to recover from data transfer errors
authorAlexander Steffen <Alexander.Steffen@infineon.com>
Tue, 13 Jun 2023 18:02:59 +0000 (20:02 +0200)
committerJarkko Sakkinen <jarkko@kernel.org>
Thu, 17 Aug 2023 20:12:41 +0000 (20:12 +0000)
commit280db21e153d8810ce3b93640c63ae922bcb9e8e
treee46746d3be5d82c7ad0e00af7bf0055149cda943
parentb400f9d33fc21726bef465c49e71cd7364d0b8ef
tpm_tis: Resend command to recover from data transfer errors

Similar to the transmission of TPM responses, also the transmission of TPM
commands may become corrupted. Instead of aborting when detecting such
issues, try resending the command again.

Signed-off-by: Alexander Steffen <Alexander.Steffen@infineon.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_core.c