Skip to contentSkip to conversation

net: mvpp2: initialize port fwnode pointer

PATCH Applied Marcin Wojtas 4 participants 4 messages Dec 31, 2023 – Jan 4, 2024

Subsystems (3)
lore
Share & tools
lore

Marcin Wojtas

author maintainer
#0 lore raw

PATCH 1/1 net: mvpp2: initialize port fwnode pointer

Update the port's device structure also with its fwnode pointer with a recommended device_set_node() helper routine.

---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +1 -1
index 1ca273f17d29..820b1fabe297 100644
@@ -6877,7 +6877,7 @@ static int mvpp2_port_probe(struct platform_device *pdev,
 	dev->min_mtu = ETH_MIN_MTU;
 	/* 9704 == 9728 - 20 and rounding to 8 */
 	dev->max_mtu = MVPP2_BM_JUMBO_PKT_SIZE;
-	dev->dev.of_node = port_node;
+	device_set_node(&dev->dev, port_fwnode);
 
 	port->pcs_gmac.ops = &mvpp2_phylink_gmac_pcs_ops;
 	port->pcs_gmac.neg_mode = true;
Signature · 1 line
2.34.1
#1 lore raw

Looks good to me.

Quoted 5 lines

----------------------------------------------------------------------
Update the port's device structure also with its fwnode pointer with a recommended device_set_node() helper routine.

[Suman] Reviewed-by: Suman Ghosh <[email protected]>

Quoted 22 lines

---
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +1 -1
index 1ca273f17d29..820b1fabe297 100644
@@ -6877,7 +6877,7 @@ static int mvpp2_port_probe(struct platform_device
 *pdev,
 	dev->min_mtu = ETH_MIN_MTU;
 	/* 9704 == 9728 - 20 and rounding to 8 */
 	dev->max_mtu = MVPP2_BM_JUMBO_PKT_SIZE;
-	dev->dev.of_node = port_node;
+	device_set_node(&dev->dev, port_fwnode);
 
 	port->pcs_gmac.ops = &mvpp2_phylink_gmac_pcs_ops;
	port->pcs_gmac.neg_mode = true;

--
2.34.1

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Marcin Wojtas
Quoted 4 lines · Marcin Wojtas

Update the port's device structure also with its fwnode pointer with a recommended device_set_node() helper routine.

Thanks!

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
#3 lore raw
In reply to Marcin Wojtas
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Sun, 31 Dec 2023 12:20:19 +0000 you wrote:

Update the port's device structure also with its fwnode pointer with a recommended device_set_node() helper routine.

---
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net-next:] net: mvpp2: initialize port fwnode pointer

    https://git.kernel.org/netdev/net-next/c/5fe65375e3d4

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html