Thread (7 messages) 7 messages, 2 authors, 2016-12-16

Re: [upstream-release] [PATCH net 2/4] fsl/fman: arm: call of_platform_populate() for arm64 platfrom

flat view

From: Scott Wood <hidden>
Date: 2016-12-15 18:41:46
Also in: lkml, netdev

On 12/15/2016 07:11 AM, Madalin Bucur wrote:=0A=
quoted hunk ↗ jump to hunk
From: Igal Liberman <redacted>=0A=
=0A=
Signed-off-by: Igal Liberman <redacted>=0A=
---=0A=
 drivers/net/ethernet/freescale/fman/fman.c | 10 ++++++++++=0A=
 1 file changed, 10 insertions(+)=0A=
=0A=
diff --git a/drivers/net/ethernet/freescale/fman/fman.c b/drivers/net/eth=
ernet/freescale/fman/fman.c=0A=
quoted hunk ↗ jump to hunk
index dafd9e1..f36b4eb 100644=0A=
--- a/drivers/net/ethernet/freescale/fman/fman.c=0A=
+++ b/drivers/net/ethernet/freescale/fman/fman.c=0A=
@@ -2868,6 +2868,16 @@ static struct fman *read_dts_node(struct platform_=
device *of_dev)=0A=
quoted hunk ↗ jump to hunk
 =0A=
 	fman->dev =3D &of_dev->dev;=0A=
 =0A=
+#ifdef CONFIG_ARM64=0A=
+	/* call of_platform_populate in order to probe sub-nodes on arm64 */=0A=
+	err =3D of_platform_populate(fm_node, NULL, NULL, &of_dev->dev);=0A=
+	if (err) {=0A=
+		dev_err(&of_dev->dev, "%s: of_platform_populate() failed\n",=0A=
+			__func__);=0A=
+		goto fman_free;=0A=
+	}=0A=
+#endif=0A=
=0A=
Should we remove fsl,fman from the PPC of_device_ids[], so this doesn't=0A=
need an ifdef?=0A=
=0A=
Why is it #ifdef CONFIG_ARM64 rather than #ifndef CONFIG_PPC?=0A=
=0A=
-Scott=0A=
=0A=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help