Root/target/linux/mpc83xx/patches-2.6.36/110-etsec27_war.patch

1--- a/drivers/net/gianfar.c
2+++ b/drivers/net/gianfar.c
3@@ -1002,6 +1002,14 @@ static int gfar_probe(struct platform_de
4     udelay(2);
5 
6     tempval = (MACCFG1_TX_FLOW | MACCFG1_RX_FLOW);
7+ /*
8+ * Do not enable flow control on chips earlier than rev 1.1,
9+ * because of the eTSEC27 erratum
10+ */
11+ tempval = 0;
12+ if (mfspr(SPRN_SVR) & 0xffff >= 0x0011)
13+ tempval = (MACCFG1_TX_FLOW | MACCFG1_RX_FLOW);
14+
15     gfar_write(&regs->maccfg1, tempval);
16 
17     /* Initialize MACCFG2. */
18

Archive Download this file



interactive