Commit a7ec4f4e authored by Alexander Steffen's avatar Alexander Steffen Committed by sanglipeng
Browse files

tpm_tis: Resend command to recover from data transfer errors

stable inclusion
from stable-v5.10.197
commit c7a8813d91f949b6c6265a3c5b43438682606c56
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I96Q8P

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c7a8813d91f949b6c6265a3c5b43438682606c56



--------------------------------

[ Upstream commit 280db21e ]

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: default avatarAlexander Steffen <Alexander.Steffen@infineon.com>
Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 8a8b4ac9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment