[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1366108962-8607-1-git-send-email-l.stach@pengutronix.de>
Date: Tue, 16 Apr 2013 12:42:42 +0200
From: Lucas Stach <l.stach@...gutronix.de>
To: netdev@...r.kernel.org
Cc: David Miller <davem@...emloft.net>,
Lucas Stach <l.stach@...gutronix.de>
Subject: [PATCH for 3.9] 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@...gutronix.de>
---
drivers/net/ethernet/freescale/fec.c | 1 +
1 file changed, 1 insertion(+)
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;
}
}
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists