Skip to content

Commit

Permalink
net: mvpp2: move the mii configuration in the ndo_open path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antoine Ténart authored and David S. Miller committed Aug 22, 2017
1 parent 1068ec7 commit 2055d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/marvell/mvpp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5987,6 +5987,7 @@ static void mvpp2_start_dev(struct mvpp2_port *port)
/* Enable interrupts on all CPUs */
mvpp2_interrupts_enable(port);

mvpp2_port_mii_set(port);
mvpp2_port_enable(port);
phy_start(ndev->phydev);
netif_tx_start_all_queues(port->dev);
Expand Down Expand Up @@ -6949,7 +6950,6 @@ static int mvpp2_port_probe(struct platform_device *pdev,
goto err_free_stats;
}

mvpp2_port_mii_set(port);
mvpp2_port_periodic_xon_disable(port);

if (priv->hw_version == MVPP21)
Expand Down

0 comments on commit 2055d62

Please sign in to comment.