net: fec: fix regression in link change accounting
authorLucas Stach <l.stach@pengutronix.de>
Tue, 16 Apr 2013 00:42:42 +0000 (00:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Apr 2013 20:47:43 +0000 (16:47 -0400)
commit8d7ed0f051caf192994c02fbefb859eac03d1646
treeea2232dba2472749c20d400bfe89447f1b99dca0
parent32b161aa88aa40a83888a995c6e2ef81140219b1
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>
drivers/net/ethernet/freescale/fec.c