mirror of https://gitee.com/openkylin/linux.git
net/fec: prevent dobule restart of interface on FDX/HDX change
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>
This commit is contained in:
parent
5b1436c1f9
commit
6ea0722fb8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue