optee: refactor driver with internal callbacks
authorJens Wiklander <jens.wiklander@linaro.org>
Thu, 25 Mar 2021 14:08:50 +0000 (15:08 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 15 Oct 2021 09:55:42 +0000 (11:55 +0200)
commit4602c5842f649da2fbd2cea3560af750cfbd59e3
tree9c8cb380a90fb44a3e306add9070c11306409e5b
parentc0ab6db39a908d86ed44e8a5632548e2ec1b4dca
optee: refactor driver with internal callbacks

The OP-TEE driver is refactored with three internal callbacks replacing
direct calls to optee_from_msg_param(), optee_to_msg_param() and
optee_do_call_with_arg().

These functions a central to communicating with OP-TEE in secure world
by using the SMC Calling Convention directly.

This refactoring makes room for using other primitives to communicate
with OP-TEE in secure world while being able to reuse as much as
possible from the present driver.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/call.c
drivers/tee/optee/core.c
drivers/tee/optee/optee_private.h
drivers/tee/optee/rpc.c