Re: [PATCH] tpm: Start the tpm2 before running a self test.

From: Jarkko Sakkinen
Date: Thu Nov 23 2023 - 20:42:37 EST


On Wed Nov 22, 2023 at 8:55 AM EET, Hermin Anggawijaya wrote:
> Before sending a command to attempt the self test, the TPM
> may need to be started, otherwise the self test returns
> TPM2_RC_INITIALIZE value causing a log as follows:
> "tpm tpm0: A TPM error (256) occurred attempting the self test".
>
> Signed-off-by: Hermin Anggawijaya <hermin.anggawijaya@xxxxxxxxxxxxxxxxxxx>

Firmware does TPM power on.

BR, Jarkko