Commit 50e35668 authored by Doug Berger's avatar Doug Berger Committed by David S. Miller

net: bcmgenet: remove netif_carrier_off from adjust_link

The bcmgenet_mii_setup() function is registered as the adjust_link
callback from the phylib for the GENET driver.

The phylib always sets the netif_carrier according to phydev->link
prior to invoking the adjust_link callback, so there is no need to
repeat that in the link down case within the network driver.
Signed-off-by: default avatarDoug Berger <opendmb@gmail.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 13807ded
...@@ -106,9 +106,6 @@ void bcmgenet_mii_setup(struct net_device *dev) ...@@ -106,9 +106,6 @@ void bcmgenet_mii_setup(struct net_device *dev)
/* done if nothing has changed */ /* done if nothing has changed */
if (!status_changed) if (!status_changed)
return; return;
/* needed for MoCA fixed PHY to reflect correct link status */
netif_carrier_off(dev);
} }
phy_print_status(phydev); phy_print_status(phydev);
......
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