aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Chong <victor.chong@linaro.org>2018-04-11 10:19:53 +0100
committerJens Wiklander <jens.wiklander@linaro.org>2018-11-06 09:47:42 +0100
commit42504434e538d254db28278a014f9ee9173ef384 (patch)
tree0faab5bdb0bf46f236b9e5995ab1bbb1fadba2f5
parent0fd74a85460ff38ead0bafc59b8d1fcbb6d5859b (diff)
downloadlinux-linaro-stable-42504434e538d254db28278a014f9ee9173ef384.tar.gz
tee: optee: log message if dynamic shm is enabled
Cherry-picked from https://github.com/linaro-swg/linux/tree/optee: (c6343fe061db "tee: optee: log message if dynamic shm is enabled") Suggested-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
-rw-r--r--drivers/tee/optee/core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index 34dce850067b..e5efce3c08e2 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -631,6 +631,9 @@ static struct optee *optee_probe(struct device_node *np)
optee_enable_shm_cache(optee);
+ if (optee->sec_caps & OPTEE_SMC_SEC_CAP_DYNAMIC_SHM)
+ pr_info("dynamic shared memory is enabled\n");
+
pr_info("initialized driver\n");
return optee;
err: