Merge tag 'tee-subsys-optee-for-4.21' of https://git.linaro.org/people/jens.wiklander...
authorOlof Johansson <olof@lixom.net>
Mon, 31 Dec 2018 21:06:30 +0000 (13:06 -0800)
committerOlof Johansson <olof@lixom.net>
Mon, 31 Dec 2018 21:06:30 +0000 (13:06 -0800)
OP-TEE dynamic shm log message

Adds a log message in the OP-TEE driver to inform that dynamic shared
memory is enabled.

* tag 'tee-subsys-optee-for-4.21' of https://git.linaro.org/people/jens.wiklander/linux-tee:
  tee: optee: log message if dynamic shm is enabled

Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/tee/optee/core.c

index 34dce850067b9e9c379274ef8b3c91da4bb42ef0..e5efce3c08e2eee08c3a3bc6fb330da07df5c4b8 100644 (file)
@@ -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: