]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa27304d85cba3560c476eaf0d3fddfa9ddb2aea
tree0234fcf6fcb8f537c41e511e908b841cf4272fec
parentd5f46bf64efcb34179e72453c00718c741ac40aa
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