tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 20 Jun 2025 13:08:09 +0000 (15:08 +0200)
committerJarkko Sakkinen <jarkko@kernel.org>
Tue, 22 Jul 2025 23:23:18 +0000 (02:23 +0300)
commit0637c10e72ef4b0645cb45873d21fd5f711ba041
tree255ddf672e65207e33c47f75f1334844db5d054e
parent04fe47015d7726b42c34615c124697c7a3537bf0
tpm/tpm_ftpm_tee: support TPM_CHIP_FLAG_SYNC

This driver does not support interrupts, and receiving the response is
synchronous with sending the command.

Enable synchronous send() with TPM_CHIP_FLAG_SYNC, which implies that
->send() already fills the provided buffer with a response, and ->recv()
is not implemented.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_ftpm_tee.c
drivers/char/tpm/tpm_ftpm_tee.h