linux/drivers/tee/optee
Arnd Bergmann 67bc809752 optee: simplify i2c access
Storing a bogus i2c_client structure on the stack adds overhead and
causes a compile-time warning:

drivers/tee/optee/rpc.c:493:6: error: stack frame size of 1056 bytes in function 'optee_handle_rpc' [-Werror,-Wframe-larger-than=]
void optee_handle_rpc(struct tee_context *ctx, struct optee_rpc_param *param,

Change the implementation of handle_rpc_func_cmd_i2c_transfer() to
open-code the i2c_transfer() call, which makes it easier to read
and avoids the warning.

Fixes: c05210ab97 ("drivers: optee: allow op-tee to access devices on the i2c bus")
Tested-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2021-02-08 13:42:31 +01:00
..
call.c optee: add writeback to valid memory type 2020-11-25 12:51:52 +01:00
core.c driver: tee: Handle NULL pointer indication from client 2020-08-21 08:55:13 +02:00
device.c tee: optee: Use UUID API for exporting the UUID 2020-10-13 08:03:18 +02:00
Kconfig tee: optee: Fix compilation issue with nommu 2020-01-23 10:55:20 +01:00
Makefile tee: optee: add TEE bus device enumeration support 2019-02-01 15:12:46 +01:00
optee_msg.h drivers: optee: allow op-tee to access devices on the i2c bus 2020-08-21 11:41:45 +02:00
optee_private.h drivers: optee: allow op-tee to access devices on the i2c bus 2020-08-21 11:41:45 +02:00
optee_smc.h driver: tee: Handle NULL pointer indication from client 2020-08-21 08:55:13 +02:00
rpc.c optee: simplify i2c access 2021-02-08 13:42:31 +01:00
shm_pool.c optee: Fix multi page dynamic shm pool alloc 2020-01-03 11:21:12 +01:00
shm_pool.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
supp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00