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 <[email protected]>
Tested-by: Marcin Wojtas <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
/* 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);
goto err_free_stats;
}
- mvpp2_port_mii_set(port);
mvpp2_port_periodic_xon_disable(port);
if (priv->hw_version == MVPP21)