diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2013-04-15 20:42:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-16 16:47:43 -0400 |
commit | 8d7ed0f051caf192994c02fbefb859eac03d1646 (patch) | |
tree | ea2232dba2472749c20d400bfe89447f1b99dca0 /drivers/net/ethernet | |
parent | 32b161aa88aa40a83888a995c6e2ef81140219b1 (diff) |
net: fec: fix regression in link change accounting
A link-down isn't properly saved in the FEC state, so we wouldn't restart the
FEC after a repeated link-up.
Regression was introduced with commit
d97e7497 "net: fec: restart the FEC when PHY speed changes"
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/freescale/fec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/fec.c b/drivers/net/ethernet/freescale/fec.c index f292c3aa423f..73195f643c9c 100644 --- a/drivers/net/ethernet/freescale/fec.c +++ b/drivers/net/ethernet/freescale/fec.c | |||
@@ -1002,6 +1002,7 @@ static void fec_enet_adjust_link(struct net_device *ndev) | |||
1002 | } else { | 1002 | } else { |
1003 | if (fep->link) { | 1003 | if (fep->link) { |
1004 | fec_stop(ndev); | 1004 | fec_stop(ndev); |
1005 | fep->link = phy_dev->link; | ||
1005 | status_change = 1; | 1006 | status_change = 1; |
1006 | } | 1007 | } |
1007 | } | 1008 | } |