]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tee: optee: store OP-TEE capabilities in private data
authorVolodymyr Babchuk <vlad.babchuk@gmail.com>
Wed, 29 Nov 2017 12:48:34 +0000 (14:48 +0200)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 15 Dec 2017 12:36:16 +0000 (13:36 +0100)
Those capabilities will be used in subsequent patches.

Signed-off-by: Volodymyr Babchuk <vlad.babchuk@gmail.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/core.c
drivers/tee/optee/optee_private.h

index ef8e35e4ad88577e29bdcdec4fbfae61418c64d7..863c2a33d4049465f8acef108ab20bca0a4feb16 100644 (file)
@@ -545,6 +545,7 @@ static struct optee *optee_probe(struct device_node *np)
        }
 
        optee->invoke_fn = invoke_fn;
+       optee->sec_caps = sec_caps;
 
        teedev = tee_device_alloc(&optee_desc, NULL, pool, optee);
        if (IS_ERR(teedev)) {
index 61a0052f6a54c3465c13cf5e9a89c67b671386ba..de7962ebc1b6d88408cb356841e2d6b83642e5d7 100644 (file)
@@ -96,6 +96,8 @@ struct optee_supp {
  * @supp:              supplicant synchronization struct for RPC to supplicant
  * @pool:              shared memory pool
  * @memremaped_shm     virtual address of memory in shared memory pool
+ * @sec_caps:          secure world capabilities defined by
+ *                     OPTEE_SMC_SEC_CAP_* in optee_smc.h
  */
 struct optee {
        struct tee_device *supp_teedev;
@@ -106,6 +108,7 @@ struct optee {
        struct optee_supp supp;
        struct tee_shm_pool *pool;
        void *memremaped_shm;
+       u32 sec_caps;
 };
 
 struct optee_session {