linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev
@ 2019-02-28 11:20 Mans Rullgard
  2019-03-18 14:29 ` Måns Rullgård
  2019-06-27  9:56 ` Måns Rullgård
  0 siblings, 2 replies; 3+ messages in thread
From: Mans Rullgard @ 2019-02-28 11:20 UTC (permalink / raw)
  To: Bin Liu, Maxime Ripard, Chen-Yu Tsai
  Cc: Greg Kroah-Hartman, linux-usb, linux-arm-kernel, linux-kernel

In order for devicetree nodes to be correctly associated with attached
devices, the controller node needs to be propagated to the glue device.

Signed-off-by: Mans Rullgard <mans@mansr.com>
---
This depends on 2c1ea6abde88 ("platform: set of_node in
platform_device_register_full()") which is currently winding its way
through the staging trees.
---
 drivers/usb/musb/sunxi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c
index 832a41f9ee7d..a72665fbf111 100644
--- a/drivers/usb/musb/sunxi.c
+++ b/drivers/usb/musb/sunxi.c
@@ -781,6 +781,8 @@ static int sunxi_musb_probe(struct platform_device *pdev)
 	pinfo.name	 = "musb-hdrc";
 	pinfo.id	= PLATFORM_DEVID_AUTO;
 	pinfo.parent	= &pdev->dev;
+	pinfo.fwnode	= of_fwnode_handle(pdev->dev.of_node);
+	pinfo.of_node_reused = true;
 	pinfo.res	= pdev->resource;
 	pinfo.num_res	= pdev->num_resources;
 	pinfo.data	= &pdata;
-- 
2.20.1


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

* Re: [PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev
  2019-02-28 11:20 [PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev Mans Rullgard
@ 2019-03-18 14:29 ` Måns Rullgård
  2019-06-27  9:56 ` Måns Rullgård
  1 sibling, 0 replies; 3+ messages in thread
From: Måns Rullgård @ 2019-03-18 14:29 UTC (permalink / raw)
  To: Bin Liu
  Cc: Maxime Ripard, Chen-Yu Tsai, Greg Kroah-Hartman, linux-usb,
	linux-arm-kernel, linux-kernel

Mans Rullgard <mans@mansr.com> writes:

> In order for devicetree nodes to be correctly associated with attached
> devices, the controller node needs to be propagated to the glue device.
>
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> ---
> This depends on 2c1ea6abde88 ("platform: set of_node in
> platform_device_register_full()") which is currently winding its way
> through the staging trees.

That patch is now in next.

> ---
>  drivers/usb/musb/sunxi.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c
> index 832a41f9ee7d..a72665fbf111 100644
> --- a/drivers/usb/musb/sunxi.c
> +++ b/drivers/usb/musb/sunxi.c
> @@ -781,6 +781,8 @@ static int sunxi_musb_probe(struct platform_device *pdev)
>  	pinfo.name	 = "musb-hdrc";
>  	pinfo.id	= PLATFORM_DEVID_AUTO;
>  	pinfo.parent	= &pdev->dev;
> +	pinfo.fwnode	= of_fwnode_handle(pdev->dev.of_node);
> +	pinfo.of_node_reused = true;
>  	pinfo.res	= pdev->resource;
>  	pinfo.num_res	= pdev->num_resources;
>  	pinfo.data	= &pdata;
> -- 
> 2.20.1
>

-- 
Måns Rullgård

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

* Re: [PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev
  2019-02-28 11:20 [PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev Mans Rullgard
  2019-03-18 14:29 ` Måns Rullgård
@ 2019-06-27  9:56 ` Måns Rullgård
  1 sibling, 0 replies; 3+ messages in thread
From: Måns Rullgård @ 2019-06-27  9:56 UTC (permalink / raw)
  To: Bin Liu, Maxime Ripard, Chen-Yu Tsai
  Cc: Greg Kroah-Hartman, linux-usb, linux-arm-kernel, linux-kernel

Mans Rullgard <mans@mansr.com> writes:

> In order for devicetree nodes to be correctly associated with attached
> devices, the controller node needs to be propagated to the glue device.
>
> Signed-off-by: Mans Rullgard <mans@mansr.com>
> ---
> This depends on 2c1ea6abde88 ("platform: set of_node in
> platform_device_register_full()") which is currently winding its way
> through the staging trees.

That patch is in v5.1, so this one can go ahead now.  Assuming there are
no objections, of course.

> ---
>  drivers/usb/musb/sunxi.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/usb/musb/sunxi.c b/drivers/usb/musb/sunxi.c
> index 832a41f9ee7d..a72665fbf111 100644
> --- a/drivers/usb/musb/sunxi.c
> +++ b/drivers/usb/musb/sunxi.c
> @@ -781,6 +781,8 @@ static int sunxi_musb_probe(struct platform_device *pdev)
>  	pinfo.name	 = "musb-hdrc";
>  	pinfo.id	= PLATFORM_DEVID_AUTO;
>  	pinfo.parent	= &pdev->dev;
> +	pinfo.fwnode	= of_fwnode_handle(pdev->dev.of_node);
> +	pinfo.of_node_reused = true;
>  	pinfo.res	= pdev->resource;
>  	pinfo.num_res	= pdev->num_resources;
>  	pinfo.data	= &pdata;
> -- 
> 2.20.1
>

-- 
Måns Rullgård

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

end of thread, other threads:[~2019-06-27  9:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-28 11:20 [PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev Mans Rullgard
2019-03-18 14:29 ` Måns Rullgård
2019-06-27  9:56 ` Måns Rullgård

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).