linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rpmsg: qcom_smd: add of_node node to edge device
@ 2017-07-26 16:53 srinivas.kandagatla
  2017-07-26 17:00 ` Bjorn Andersson
  0 siblings, 1 reply; 2+ messages in thread
From: srinivas.kandagatla @ 2017-07-26 16:53 UTC (permalink / raw)
  To: Bjorn Andersson, Ohad Ben-Cohen
  Cc: linux-arm-msm, linux-remoteproc, linux-kernel,
	Srinivas Kandagatla

From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

This patch assigns the device node to the edge device, so that the edge
device drivers could read required device tree properties.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
 drivers/rpmsg/qcom_smd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c
index a0a39a8..b01774e 100644
--- a/drivers/rpmsg/qcom_smd.c
+++ b/drivers/rpmsg/qcom_smd.c
@@ -1368,6 +1368,7 @@ struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
 
 	edge->dev.parent = parent;
 	edge->dev.release = qcom_smd_edge_release;
+	edge->dev.of_node = node;
 	edge->dev.groups = qcom_smd_edge_groups;
 	dev_set_name(&edge->dev, "%s:%s", dev_name(parent), node->name);
 	ret = device_register(&edge->dev);
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rpmsg: qcom_smd: add of_node node to edge device
  2017-07-26 16:53 [PATCH] rpmsg: qcom_smd: add of_node node to edge device srinivas.kandagatla
@ 2017-07-26 17:00 ` Bjorn Andersson
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2017-07-26 17:00 UTC (permalink / raw)
  To: srinivas.kandagatla
  Cc: Ohad Ben-Cohen, linux-arm-msm, linux-remoteproc, linux-kernel

On Wed 26 Jul 09:53 PDT 2017, srinivas.kandagatla@linaro.org wrote:

> From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> 
> This patch assigns the device node to the edge device, so that the edge
> device drivers could read required device tree properties.
> 
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

Applied

Thanks,
Bjorn

> ---
>  drivers/rpmsg/qcom_smd.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c
> index a0a39a8..b01774e 100644
> --- a/drivers/rpmsg/qcom_smd.c
> +++ b/drivers/rpmsg/qcom_smd.c
> @@ -1368,6 +1368,7 @@ struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
>  
>  	edge->dev.parent = parent;
>  	edge->dev.release = qcom_smd_edge_release;
> +	edge->dev.of_node = node;
>  	edge->dev.groups = qcom_smd_edge_groups;
>  	dev_set_name(&edge->dev, "%s:%s", dev_name(parent), node->name);
>  	ret = device_register(&edge->dev);
> -- 
> 2.9.3
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-26 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-26 16:53 [PATCH] rpmsg: qcom_smd: add of_node node to edge device srinivas.kandagatla
2017-07-26 17:00 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).