]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tpm: ibmvtpm: Set TPM_OPS_AUTO_STARTUP flag on driver
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 14 Oct 2024 14:16:43 +0000 (10:16 -0400)
committerJarkko Sakkinen <jarkko@kernel.org>
Thu, 21 Nov 2024 22:48:26 +0000 (00:48 +0200)
commit02e9bda80d66cdd53364b9b32166ac0be1ced58f
tree3f018435cb9adecb1dd9f6cfe5ee675b12c2e5ea
parent341d041daae52cd5f014f68c1c7d9039db818fca
tpm: ibmvtpm: Set TPM_OPS_AUTO_STARTUP flag on driver

Set the TPM_OPS_AUTO_STARTUP on the driver so that the ibmvtpm driver now
uses tpm2_auto_startup and tpm1_auto_startup like many other drivers do.
Remove tpm_get_timeouts, tpm2_get_cc_attrs_tbl, and tpm2_sessions_init
calls from it since these will all be called in tpm2_auto_startup and
tpm1_auto_startup.

The exporting of the tpm2_session_init symbol was only necessary while the
ibmvtpm driver was calling this function. Since this is not the case
anymore, remove this symbol from being exported.

What is new for the ibmvtpm driver is that now tpm2_do_selftest and
tpm1_do_selftest will be called that send commands to the TPM to perform
or continue its selftest. However, the firmware should already have sent
these commands so that the TPM will not do much work at this time.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm2-sessions.c
drivers/char/tpm/tpm_ibmvtpm.c