diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2013-04-16 00:42:42 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-16 20:47:43 (GMT) |
commit | 8d7ed0f051caf192994c02fbefb859eac03d1646 (patch) | |
tree | ea2232dba2472749c20d400bfe89447f1b99dca0 | |
parent | 32b161aa88aa40a83888a995c6e2ef81140219b1 (diff) | |
download | linux-fsl-qoriq-8d7ed0f051caf192994c02fbefb859eac03d1646.tar.xz |
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>
-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 f292c3a..73195f6 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) } else { if (fep->link) { fec_stop(ndev); + fep->link = phy_dev->link; status_change = 1; } } |