tee: Refactor TEE subsystem header files
authorSumit Garg <sumit.garg@linaro.org>
Mon, 25 Mar 2024 15:11:01 +0000 (16:11 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Wed, 3 Apr 2024 07:19:31 +0000 (09:19 +0200)
commit0439fcff304acdedfc493dbf900dce86922fd31f
tree55032038ba16df410a84c0f54589925f06836b0e
parent4cece764965020c22cff7665b18a012006359095
tee: Refactor TEE subsystem header files

Since commit 25559c22cef8 ("tee: add kernel internal client interface"),
it has been a common include/linux/tee_drv.h header file which is shared
to hold TEE subsystem internal bits along with the APIs exposed to the
TEE client drivers. However, this practice is prone to TEE subsystem
internal APIs abuse and especially so with the new TEE implementation
drivers being added to reuse existing functionality.

In order to address this split TEE subsystem internal bits as a separate
header file: include/linux/tee_core.h which should be the one used by
TEE implementation drivers. With that include/linux/tee_drv.h lists only
APIs exposed by TEE subsystem to the TEE client drivers.

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
19 files changed:
MAINTAINERS
drivers/tee/amdtee/amdtee_private.h
drivers/tee/amdtee/call.c
drivers/tee/amdtee/core.c
drivers/tee/amdtee/shm_pool.c
drivers/tee/optee/call.c
drivers/tee/optee/core.c
drivers/tee/optee/device.c
drivers/tee/optee/ffa_abi.c
drivers/tee/optee/notif.c
drivers/tee/optee/optee_private.h
drivers/tee/optee/rpc.c
drivers/tee/optee/smc_abi.c
drivers/tee/tee_core.c
drivers/tee/tee_private.h
drivers/tee/tee_shm.c
drivers/tee/tee_shm_pool.c
include/linux/tee_core.h [new file with mode: 0644]
include/linux/tee_drv.h