Skip to content

Commit

Permalink
net/fec: prevent dobule restart of interface on FDX/HDX change
Browse files Browse the repository at this point in the history
Upon detection of a FDX/HDX change the interface is restarted twice.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Lothar Waßmann authored and David S. Miller committed Dec 9, 2011
1 parent 5b1436c commit 6ea0722
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/freescale/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,8 @@ static void fec_enet_adjust_link(struct net_device *ndev)
if (phy_dev->link) {
if (fep->full_duplex != phy_dev->duplex) {
fec_restart(ndev, phy_dev->duplex);
/* prevent unnecessary second fec_restart() below */
fep->link = phy_dev->link;
status_change = 1;
}
}
Expand Down

0 comments on commit 6ea0722

Please sign in to comment.