* [PATCH] fman: don't set node on dpaa-ethernet platform device
@ 2018-06-21 11:42 Bas Vermeulen
2018-06-23 1:27 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Bas Vermeulen @ 2018-06-21 11:42 UTC (permalink / raw)
To: netdev; +Cc: bas, Madalin Bucur, linux-kernel
Setting dev->node to the mac_node in dpaa_eth_add_device during probe
causes the mac_probe to be called again for the dpaa-ethernet.* device
that was just added.
Fix this by not setting dev->node, as it is not needed.
Signed-off-by: Bas Vermeulen <bas@daedalean.ai>
---
drivers/net/ethernet/freescale/fman/mac.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/fman/mac.c b/drivers/net/ethernet/freescale/fman/mac.c
index 387eb4a88b72..9a265f862065 100644
--- a/drivers/net/ethernet/freescale/fman/mac.c
+++ b/drivers/net/ethernet/freescale/fman/mac.c
@@ -623,7 +623,6 @@ static struct platform_device *dpaa_eth_add_device(int fman_id,
goto no_mem;
}
- pdev->dev.of_node = node;
pdev->dev.parent = priv->dev;
set_dma_ops(&pdev->dev, get_dma_ops(priv->dev));
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fman: don't set node on dpaa-ethernet platform device
2018-06-21 11:42 [PATCH] fman: don't set node on dpaa-ethernet platform device Bas Vermeulen
@ 2018-06-23 1:27 ` David Miller
2018-06-26 7:00 ` Madalin-cristian Bucur
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2018-06-23 1:27 UTC (permalink / raw)
To: bas; +Cc: netdev, madalin.bucur, linux-kernel
From: Bas Vermeulen <bas@daedalean.ai>
Date: Thu, 21 Jun 2018 13:42:22 +0200
> Setting dev->node to the mac_node in dpaa_eth_add_device during probe
> causes the mac_probe to be called again for the dpaa-ethernet.* device
> that was just added.
>
> Fix this by not setting dev->node, as it is not needed.
>
> Signed-off-by: Bas Vermeulen <bas@daedalean.ai>
This patch doesn't apply to the current sources.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] fman: don't set node on dpaa-ethernet platform device
2018-06-23 1:27 ` David Miller
@ 2018-06-26 7:00 ` Madalin-cristian Bucur
0 siblings, 0 replies; 3+ messages in thread
From: Madalin-cristian Bucur @ 2018-06-26 7:00 UTC (permalink / raw)
To: David Miller, bas@daedalean.ai
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
> -----Original Message-----
> From: David Miller [mailto:davem@davemloft.net]
> Sent: Saturday, June 23, 2018 4:27 AM
> To: bas@daedalean.ai
> Cc: netdev@vger.kernel.org; Madalin-cristian Bucur <madalin.bucur@nxp.com>;
> linux-kernel@vger.kernel.org
> Subject: Re: [PATCH] fman: don't set node on dpaa-ethernet platform device
>
> From: Bas Vermeulen <bas@daedalean.ai>
> Date: Thu, 21 Jun 2018 13:42:22 +0200
>
> > Setting dev->node to the mac_node in dpaa_eth_add_device during probe
> > causes the mac_probe to be called again for the dpaa-ethernet.* device
> > that was just added.
> >
> > Fix this by not setting dev->node, as it is not needed.
> >
> > Signed-off-by: Bas Vermeulen <bas@daedalean.ai>
>
> This patch doesn't apply to the current sources.
Hi,
The line the patch is trying to remove was added in this commit
commit a1a50c8e4c241a505b7270e1a3c6e50d94e794b1
Author: Florian Fainelli <f.fainelli@gmail.com>
Date: Tue Aug 22 15:24:47 2017 -0700
fsl/man: Inherit parent device and of_node
and was already removed in this commit
commit 48167c9ce0b91c068430345bf039c7be23fa2f3f
Author: Madalin Bucur <madalin.bucur@nxp.com>
Date: Mon Oct 16 21:36:05 2017 +0300
fsl/fman: remove of_node
Regards,
Madalin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-06-26 7:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-21 11:42 [PATCH] fman: don't set node on dpaa-ethernet platform device Bas Vermeulen
2018-06-23 1:27 ` David Miller
2018-06-26 7:00 ` Madalin-cristian Bucur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox