summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorAryan Srivastava <aryan.srivastava@alliedtelesis.co.nz>2024-06-20 07:12:02 +0300
committerDavid S. Miller <davem@davemloft.net>2024-06-21 13:25:39 +0300
commit00418d5530ca1f42d8721fe0a3e73d1ae477c223 (patch)
treeeb494f521a0a035454f1cfa67b91dd45cbb1f07e /drivers/net
parenta23ac973f67f37e77b3c634e8b1ad5b0164fcc1f (diff)
downloadlinux-00418d5530ca1f42d8721fe0a3e73d1ae477c223.tar.xz
net: mvpp2: fill-in dev_port attribute
Fill this in so user-space can identify multiple ports on the same CP unit. Signed-off-by: Aryan Srivastava <aryan.srivastava@alliedtelesis.co.nz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
index 671368d2c77e..9adf4301c9b1 100644
--- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
@@ -6907,6 +6907,7 @@ static int mvpp2_port_probe(struct platform_device *pdev,
/* 9704 == 9728 - 20 and rounding to 8 */
dev->max_mtu = MVPP2_BM_JUMBO_PKT_SIZE;
device_set_node(&dev->dev, port_fwnode);
+ dev->dev_port = port->id;
port->pcs_gmac.ops = &mvpp2_phylink_gmac_pcs_ops;
port->pcs_gmac.neg_mode = true;