mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00: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 <[email protected]> Reviewed-by: MD Danish Anwar <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
committed by
Jakub Kicinski
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;
|
||||
|
||||
Reference in New Issue
Block a user