* [RESEND][PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev
@ 2019-08-06 11:34 Mans Rullgard
2019-08-07 18:57 ` Bin Liu
0 siblings, 1 reply; 2+ messages in thread
From: Mans Rullgard @ 2019-08-06 11:34 UTC (permalink / raw)
To: Bin Liu, Maxime Ripard
Cc: Greg Kroah-Hartman, Chen-Yu Tsai, 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>
---
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.22.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND][PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev
2019-08-06 11:34 [RESEND][PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev Mans Rullgard
@ 2019-08-07 18:57 ` Bin Liu
0 siblings, 0 replies; 2+ messages in thread
From: Bin Liu @ 2019-08-07 18:57 UTC (permalink / raw)
To: Mans Rullgard
Cc: Maxime Ripard, Greg Kroah-Hartman, Chen-Yu Tsai, linux-usb,
linux-arm-kernel, linux-kernel
On Tue, Aug 06, 2019 at 12:34:58PM +0100, Mans Rullgard wrote:
> 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>
Applied. Thanks.
-Bin.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-07 18:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-06 11:34 [RESEND][PATCH] usb: musb: sunxi: propagate devicetree node to glue pdev Mans Rullgard
2019-08-07 18:57 ` Bin Liu
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).