Commit 2055d626 authored by Antoine Ténart's avatar Antoine Ténart Committed by David S. Miller

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: default avatarAntoine Tenart <antoine.tenart@free-electrons.com>
Tested-by: default avatarMarcin Wojtas <mw@semihalf.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1068ec79
...@@ -5987,6 +5987,7 @@ static void mvpp2_start_dev(struct mvpp2_port *port) ...@@ -5987,6 +5987,7 @@ static void mvpp2_start_dev(struct mvpp2_port *port)
/* Enable interrupts on all CPUs */ /* Enable interrupts on all CPUs */
mvpp2_interrupts_enable(port); mvpp2_interrupts_enable(port);
mvpp2_port_mii_set(port);
mvpp2_port_enable(port); mvpp2_port_enable(port);
phy_start(ndev->phydev); phy_start(ndev->phydev);
netif_tx_start_all_queues(port->dev); netif_tx_start_all_queues(port->dev);
...@@ -6949,7 +6950,6 @@ static int mvpp2_port_probe(struct platform_device *pdev, ...@@ -6949,7 +6950,6 @@ static int mvpp2_port_probe(struct platform_device *pdev,
goto err_free_stats; goto err_free_stats;
} }
mvpp2_port_mii_set(port);
mvpp2_port_periodic_xon_disable(port); mvpp2_port_periodic_xon_disable(port);
if (priv->hw_version == MVPP21) if (priv->hw_version == MVPP21)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment