Messages in this thread Patch in this message | | | From | Jeya R <> | Subject | [PATCH 3/5] misc: fastrpc: Set channel as secure | Date | Thu, 25 Nov 2021 19:45:42 +0530 |
| |
Set all DSP channel as secure for which non-secure DT property is not added.
Signed-off-by: Jeya R <jeyr@codeaurora.org> --- drivers/misc/fastrpc.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 0775554e..a4e2e86 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -216,6 +216,7 @@ struct fastrpc_channel_ctx { struct miscdevice miscdev; struct miscdevice securedev; struct kref refcount; + bool secure; }; struct fastrpc_user { @@ -1650,6 +1651,7 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev) if (!data) return -ENOMEM; + data->secure = !(of_property_read_bool(rdev->of_node, "qcom,non-secure-domain")); data->miscdev.minor = MISC_DYNAMIC_MINOR; data->miscdev.name = devm_kasprintf(rdev, GFP_KERNEL, "fastrpc-%s", domains[domain_id]); -- 2.7.4
| |