tpm_ftpm_tee: register driver on TEE bus
authorMaxim Uvarov <maxim.uvarov@linaro.org>
Thu, 18 Jun 2020 13:52:51 +0000 (16:52 +0300)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 10 Jul 2020 07:41:58 +0000 (09:41 +0200)
commit9f1944c23c8cb1c033b73de80cf6c612a2a80a2b
tree0234fcf6fcb8f537c41e511e908b841cf4272fec
parent5f178bb71e3aff2abab01b1ff6837c3a054b25e1
tpm_ftpm_tee: register driver on TEE bus

OP-TEE based fTPM Trusted Application depends on tee-supplicant to
provide NV RAM implementation based on RPMB secure storage. So this
dependency can be resolved via TEE bus where we only invoke fTPM
driver probe once fTPM device is registered on the bus which is only
true after the tee-supplicant is up and running. Additionally, TEE bus
provides auto device enumeration.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Suggested-by: Sumit Garg <sumit.garg@linaro.org>
Suggested-by: Arnd Bergmann <arnd@linaro.org>
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/char/tpm/tpm_ftpm_tee.c