mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
net: ti: icssg_prueth: populate netdev of_node
Allow of_find_net_device_by_node() to find icssg_prueth ports and make the individual ports' of_nodes available in sysfs. Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com> Reviewed-by: MD Danish Anwar <danishanwar@ti.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20240807121215.3178964-1-matthias.schiffer@ew.tq-group.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
0961257604
commit
eb3ab13d99
@ -857,6 +857,7 @@ static int prueth_netdev_init(struct prueth *prueth,
|
||||
}
|
||||
ether_addr_copy(emac->mac_addr, ndev->dev_addr);
|
||||
|
||||
ndev->dev.of_node = eth_node;
|
||||
ndev->min_mtu = PRUETH_MIN_PKT_SIZE;
|
||||
ndev->max_mtu = PRUETH_MAX_MTU;
|
||||
ndev->netdev_ops = &emac_netdev_ops;
|
||||
|
@ -847,6 +847,7 @@ static int prueth_netdev_init(struct prueth *prueth,
|
||||
}
|
||||
ether_addr_copy(emac->mac_addr, ndev->dev_addr);
|
||||
|
||||
ndev->dev.of_node = eth_node;
|
||||
ndev->min_mtu = PRUETH_MIN_PKT_SIZE;
|
||||
ndev->max_mtu = PRUETH_MAX_MTU;
|
||||
ndev->netdev_ops = &emac_netdev_ops;
|
||||
|
Loading…
Reference in New Issue
Block a user