Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c15ddb9 authored by Victor Chong's avatar Victor Chong Committed by Jens Wiklander
Browse files

tee: optee: log message if dynamic shm is enabled



When dynamic shared memory support is enabled in the OP-TEE Trusted
OS, it doesn't mean that the driver supports it, which can confuse
users during debugging. Log a message when dynamic shared memory is
enabled in the driver, to let users know for sure.

Suggested-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: default avatarVictor Chong <victor.chong@linaro.org>
Reviewed-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent 40e020c1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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: