Skip to content

Commit d885cc5

Browse files
lorcjenswi-linaro
authored andcommitted
tee: optee: store OP-TEE capabilities in private data
Those capabilities will be used in subsequent patches. Signed-off-by: Volodymyr Babchuk <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent 53a107c commit d885cc5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/tee/optee/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ static struct optee *optee_probe(struct device_node *np)
545545
}
546546

547547
optee->invoke_fn = invoke_fn;
548+
optee->sec_caps = sec_caps;
548549

549550
teedev = tee_device_alloc(&optee_desc, NULL, pool, optee);
550551
if (IS_ERR(teedev)) {

drivers/tee/optee/optee_private.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ struct optee_supp {
9696
* @supp: supplicant synchronization struct for RPC to supplicant
9797
* @pool: shared memory pool
9898
* @memremaped_shm virtual address of memory in shared memory pool
99+
* @sec_caps: secure world capabilities defined by
100+
* OPTEE_SMC_SEC_CAP_* in optee_smc.h
99101
*/
100102
struct optee {
101103
struct tee_device *supp_teedev;
@@ -106,6 +108,7 @@ struct optee {
106108
struct optee_supp supp;
107109
struct tee_shm_pool *pool;
108110
void *memremaped_shm;
111+
u32 sec_caps;
109112
};
110113

111114
struct optee_session {

0 commit comments

Comments
 (0)