Re: [PATCH v18 3/6] tpm: Handle an exception for TPM Firmware Update mode.
From: Jarkko Sakkinen <jarkko@kernel.org>
Date: 2021-11-02 20:32:31
Also in:
linux-devicetree, lkml
From: Jarkko Sakkinen <jarkko@kernel.org>
Date: 2021-11-02 20:32:31
Also in:
linux-devicetree, lkml
On Tue, 2021-11-02 at 17:20 +0200, amirmizi6@gmail.com wrote:
From: Amir Mizinski <redacted> Add a condition to enable communication with the TPM while the TPM is in firmware update mode. In such a case if power was cut during the TPM firmware update, the driver should ignore the "selftest" command return code (TPM2_RC_UPGRADE or TPM2_RC_COMMAND_CODE) and skip the rest of the TPM initialization sequence. Suggested-by: Benoit Houyere <redacted> Signed-off-by: Amir Mizinski <redacted>
This is a half-baked handling of the FW upgrade mode. There's another patch in progress that aims to do proper handling for it: https://lore.kernel.org/linux-integrity/20210930160241.9691-1-borysmn@axis.com/ (local) I CC'd Borys for further comments/discussion. /Jarkko