Skip to content

Commit 2055d62

Browse files
atenartdavem330
authored andcommitted
net: mvpp2: move the mii configuration in the ndo_open path
This moves the mii configuration in the ndo_open path, to allow handling different mii configurations later and to switch between these configurations at runtime. Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Tested-by: Marcin Wojtas <mw@semihalf.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1068ec7 commit 2055d62

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/marvell

1 file changed

+1
-1
lines changed

drivers/net/ethernet/marvell/mvpp2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5987,6 +5987,7 @@ static void mvpp2_start_dev(struct mvpp2_port *port)
59875987
/* Enable interrupts on all CPUs */
59885988
mvpp2_interrupts_enable(port);
59895989

5990+
mvpp2_port_mii_set(port);
59905991
mvpp2_port_enable(port);
59915992
phy_start(ndev->phydev);
59925993
netif_tx_start_all_queues(port->dev);
@@ -6949,7 +6950,6 @@ static int mvpp2_port_probe(struct platform_device *pdev,
69496950
goto err_free_stats;
69506951
}
69516952

6952-
mvpp2_port_mii_set(port);
69536953
mvpp2_port_periodic_xon_disable(port);
69546954

69556955
if (priv->hw_version == MVPP21)

0 commit comments

Comments
 (0)