aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc83xx/patches-3.14/111-etsec27_war.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-12-29 17:11:13 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2014-12-29 17:11:13 +0000
commitbb5a18ff925a7c109c6e8fe33ae041212c549d06 (patch)
tree00c4762cc20f9bfde20be80d2c6169787461bcd9 /target/linux/mpc83xx/patches-3.14/111-etsec27_war.patch
parentcb9619108827c2546fd00e63a2671e1963e9f10b (diff)
downloadupstream-bb5a18ff925a7c109c6e8fe33ae041212c549d06.tar.gz
upstream-bb5a18ff925a7c109c6e8fe33ae041212c549d06.tar.bz2
upstream-bb5a18ff925a7c109c6e8fe33ae041212c549d06.zip
mpc83xx: add support for kernel 3.14
This is compile tested only, please run test and report back. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 43797
Diffstat (limited to 'target/linux/mpc83xx/patches-3.14/111-etsec27_war.patch')
-rw-r--r--target/linux/mpc83xx/patches-3.14/111-etsec27_war.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/mpc83xx/patches-3.14/111-etsec27_war.patch b/target/linux/mpc83xx/patches-3.14/111-etsec27_war.patch
new file mode 100644
index 0000000000..0c4b3fdd77
--- /dev/null
+++ b/target/linux/mpc83xx/patches-3.14/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
+ */