Lucas Stach  committed 8d7ed0f

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 <>
Tested-by: Fabio Estevam <>
Signed-off-by: David S. Miller <>

  • Participants
  • Parent commits 32b161a

Comments (0)

Files changed (1)

File drivers/net/ethernet/freescale/fec.c

 	} else {
 		if (fep->link) {
+			fep->link = phy_dev->link;
 			status_change = 1;