Re: [PATCHv2] drivers: optee: fix i2c build issue
From: Jens Wiklander
Date: Tue Sep 01 2020 - 06:04:59 EST
On Mon, Aug 31, 2020 at 06:11:02PM +0200, Jorge Ramirez-Ortiz wrote:
> 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)
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Jorge Ramirez-Ortiz <jorge@xxxxxxxxxxxx>
> ---
> v2: uses IS_REACHABLE instead of macro combination
>
> This patch applies on top of
> https://git.linaro.org/people/jens.wiklander/linux-tee.git/tag/?h=optee-i2c-for-v5.10
>
> drivers/tee/optee/rpc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Thanks for the prompt fix, I'm picking this up.
Cheers,
Jens