Commit 539f8fc2 authored by Jorge Ramirez-Ortiz's avatar Jorge Ramirez-Ortiz Committed by Jens Wiklander

drivers: optee: fix i2c build issue

When the optee driver is compiled into the kernel while the i2c core
is configured as a module, the i2c symbols are not available.

This commit addresses the situation by disabling the i2c support for
this use case while allowing it in all other scenarios:

 i2c=y, optee=y
 i2c=m, optee=m
 i2c=y, optee=m
 i2c=m, optee=y (not supported)

Fixes: c05210ab ("drivers: optee: allow op-tee to access devices on the i2c bus")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarJorge Ramirez-Ortiz <jorge@foundries.io>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent c05210ab
......@@ -50,7 +50,7 @@ static void handle_rpc_func_cmd_get_time(struct optee_msg_arg *arg)
arg->ret = TEEC_ERROR_BAD_PARAMETERS;
}
#if IS_ENABLED(CONFIG_I2C)
#if IS_REACHABLE(CONFIG_I2C)
static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx,
struct optee_msg_arg *arg)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment