mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
This is compile tested only, please run test and report back. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43797 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
787 B
Diff
24 lines
787 B
Diff
--- a/drivers/net/ethernet/freescale/gianfar.c
|
|
+++ b/drivers/net/ethernet/freescale/gianfar.c
|
|
@@ -1050,10 +1050,16 @@ static int gfar_probe(struct platform_de
|
|
udelay(2);
|
|
|
|
tempval = 0;
|
|
- if (!priv->pause_aneg_en && priv->tx_pause_en)
|
|
- tempval |= MACCFG1_TX_FLOW;
|
|
- if (!priv->pause_aneg_en && priv->rx_pause_en)
|
|
- tempval |= MACCFG1_RX_FLOW;
|
|
+ /*
|
|
+ * Do not enable flow control on chips earlier than rev 1.1,
|
|
+ * because of the eTSEC27 erratum
|
|
+ */
|
|
+ if ((mfspr(SPRN_SVR) & 0xffff) >= 0x0011) {
|
|
+ if (!priv->pause_aneg_en && priv->tx_pause_en)
|
|
+ tempval |= MACCFG1_TX_FLOW;
|
|
+ if (!priv->pause_aneg_en && priv->rx_pause_en)
|
|
+ tempval |= MACCFG1_RX_FLOW;
|
|
+ }
|
|
/* the soft reset bit is not self-resetting, so we need to
|
|
* clear it before resuming normal operation
|
|
*/
|