[PATCH v2 2/3] drivers: tee: optee: discover OP-TEE services

Patrick DELAUNAY patrick.delaunay at foss.st.com
Mon Jun 6 13:35:52 CEST 2022


Hi Etienne,

On 6/3/22 12:27, Etienne Carriere wrote:
> This change defines resources for OP-TEE service drivers to register
> themselves for being bound to when OP-TEE firmware reports the related
> service is supported. OP-TEE services are discovered during optee
> driver probe sequence which mandates optee driver is always probe once
> bound.
>
> Discovery of optee services and binding to related U-Boot drivers is
> embedded upon configuration switch CONFIG_OPTEE_SERVICE_DISCOVERY.
>
> Cc: Jens Wiklander <jens.wiklander at linaro.org>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Signed-off-by: Etienne Carriere <etienne.carriere at linaro.org>
> ---
> Changes since v1:
> - Remove all #ifdef CONFIG_OPTEE_SERVICE_DISCOVERY directives and replace
>    with if (IS_ENABLED()) where applicable.
> - Incidentally rename local function open_session() to open_enum_session()
>    and remove local function close_session() for clarity.
> - Update commit log to highlight that "optee driver is always probe once
>    bound" when CONFIG_OPTEE_SERVICE_DISCOVERY is enable.
> ---
>   drivers/tee/optee/Kconfig   |   8 ++
>   drivers/tee/optee/core.c    | 175 ++++++++++++++++++++++++++++++++++--
>   include/tee/optee_service.h |  29 ++++++
>   3 files changed, 207 insertions(+), 5 deletions(-)
>   create mode 100644 include/tee/optee_service.h
>

Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Thanks
Patrick



More information about the U-Boot mailing list