]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tpm: tpm_tis: stop transmit if retries are exhausted
authorJacqueline Wong <jacqwong@google.com>
Wed, 15 Apr 2026 16:00:06 +0000 (16:00 +0000)
committerJarkko Sakkinen <jarkko@kernel.org>
Tue, 21 Apr 2026 15:54:29 +0000 (18:54 +0300)
commit949692da7211572fac419b2986b6abc0cd1aeb76
tree063fee84303c6c29f86cdad19da61eaea9c001cb
parent0471921e2d1043dcc6de5cffb49dd37709521abe
tpm: tpm_tis: stop transmit if retries are exhausted

tpm_tis_send_main() will attempt to retry sending data TPM_RETRY times.
Currently, if those retries are exhausted, the driver will attempt to
call execute. The TPM will be in the wrong state, leading to the
operation simply timing out.

Instead, if there is still an error after retries are exhausted, return
that error immediately.

Cc: stable@vger.kernel.org # v6.6+
Fixes: 280db21e153d8 ("tpm_tis: Resend command to recover from data transfer errors")
Signed-off-by: Jacqueline Wong <jacqwong@google.com>
Signed-off-by: Jordan Hand <jhand@google.com>
Link: https://lore.kernel.org/r/20260415160006.2275325-3-jacqwong@google.com
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_core.c