aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc83xx/patches-3.18/111-etsec27_war.patch
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-02-28 18:15:59 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-02-28 18:15:59 +0000
commit15fb17791a6fe75fb962800b51af3b78e653d9ea (patch)
tree6513a7f47dd2012de7706257115d2bd8b1a8e258 /target/linux/mpc83xx/patches-3.18/111-etsec27_war.patch
parent151b6b3432b25289270eee68e311d95ee829cc9e (diff)
downloadupstream-15fb17791a6fe75fb962800b51af3b78e653d9ea.tar.gz
upstream-15fb17791a6fe75fb962800b51af3b78e653d9ea.tar.bz2
upstream-15fb17791a6fe75fb962800b51af3b78e653d9ea.zip
mpc83xx: start work on 3.18 support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 44573
Diffstat (limited to 'target/linux/mpc83xx/patches-3.18/111-etsec27_war.patch')
-rw-r--r--target/linux/mpc83xx/patches-3.18/111-etsec27_war.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/mpc83xx/patches-3.18/111-etsec27_war.patch b/target/linux/mpc83xx/patches-3.18/111-etsec27_war.patch
new file mode 100644
index 0000000000..0c4b3fdd77
--- /dev/null
+++ b/target/linux/mpc83xx/patches-3.18/111-etsec27_war.patch
@@ -0,0 +1,23 @@
+--- 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
+ */