From 9d28f67c8153ce2eaea21b2f3b7810a1aa8fce6d Mon Sep 17 00:00:00 2001 From: Ilias Apalodimas Date: Thu, 19 Jan 2023 16:36:12 +0200 Subject: [PATCH] tpm2: ftpm: add the device in the OP-TEE services list commit fe8a4ed0111073 ("tee: optee: discover services dependent on tee-supplicant") is trying to automatically scan and add TAs that are presented on pseudo bus from the secure world. In order to be able to list and compare the scanned devices the available drivers have to register themselves on the op-tee service list. Acked-by: Etienne Carriere Reviewed-by: Jens Wiklander Signed-off-by: Ilias Apalodimas --- drivers/tpm/tpm2_ftpm_tee.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tpm/tpm2_ftpm_tee.c b/drivers/tpm/tpm2_ftpm_tee.c index 3c4c12983d..c61ff2c2af 100644 --- a/drivers/tpm/tpm2_ftpm_tee.c +++ b/drivers/tpm/tpm2_ftpm_tee.c @@ -18,10 +18,13 @@ #include #include #include +#include #include "tpm_tis.h" #include "tpm2_ftpm_tee.h" +OPTEE_SERVICE_DRIVER(optee_ftpm, TA_FTPM_UUID, "ftpm_tee"); + /** * ftpm_tee_transceive() - send fTPM commands and retrieve fTPM response. * @sendbuf - address of the data to send, byte by byte -- 2.39.5