tee: allow a driver to allocate a tee_device without a pool
authorAmirreza Zarrabi <amirreza.zarrabi@oss.qualcomm.com>
Fri, 12 Sep 2025 04:07:42 +0000 (21:07 -0700)
committerJens Wiklander <jens.wiklander@linaro.org>
Mon, 15 Sep 2025 15:34:06 +0000 (17:34 +0200)
commit6dbcd5a9ab6cb6644e7d728521da1c9035ec7235
treeb5fefc5d64b8b6c46dd970b44f95b6afbd830005
parent36629d52241f785b044e50357686f177232fb288
tee: allow a driver to allocate a tee_device without a pool

A TEE driver doesn't always need to provide a pool if it doesn't
support memory sharing ioctls and can allocate memory for TEE
messages in another way. Although this is mentioned in the
documentation for tee_device_alloc(), it is not handled correctly.

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Amirreza Zarrabi <amirreza.zarrabi@oss.qualcomm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_core.c