diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-11-16 16:32:55 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-11-16 16:32:55 +0000 |
commit | a4c205011b62f45e116eb26c974fa3bd771ce194 (patch) | |
tree | 123b05cb192785d0fc45c1f0acd0e6f8cba68144 /target/linux/leon/patches-2.6.36/026-greth_gbit_mac_set_ee_when_edcl.patch | |
parent | 974b9f5c9a7322424d5127dbe45236a0658c69ba (diff) | |
download | master-31e0f0ae-a4c205011b62f45e116eb26c974fa3bd771ce194.tar.gz master-31e0f0ae-a4c205011b62f45e116eb26c974fa3bd771ce194.tar.bz2 master-31e0f0ae-a4c205011b62f45e116eb26c974fa3bd771ce194.zip |
move patches to patches-2.6.36
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34220
Diffstat (limited to 'target/linux/leon/patches-2.6.36/026-greth_gbit_mac_set_ee_when_edcl.patch')
-rw-r--r-- | target/linux/leon/patches-2.6.36/026-greth_gbit_mac_set_ee_when_edcl.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/leon/patches-2.6.36/026-greth_gbit_mac_set_ee_when_edcl.patch b/target/linux/leon/patches-2.6.36/026-greth_gbit_mac_set_ee_when_edcl.patch new file mode 100644 index 0000000000..94fa0bd344 --- /dev/null +++ b/target/linux/leon/patches-2.6.36/026-greth_gbit_mac_set_ee_when_edcl.patch @@ -0,0 +1,31 @@ +From 50fcb51c42bc721f18f1bfa10f705519cd344a2a Mon Sep 17 00:00:00 2001 +From: Daniel Hellstrom <daniel@gaisler.com> +Date: Wed, 1 Dec 2010 16:20:01 +0100 +Subject: [PATCH] GRETH: Newer GBit MACs need setting EE bit when EDCL should be enabled + +--- + drivers/net/greth.c | 2 +- + drivers/net/greth.h | 1 + + 2 files changed, 2 insertions(+), 1 deletions(-) + +--- a/drivers/net/greth.c ++++ b/drivers/net/greth.c +@@ -1511,7 +1511,7 @@ static int __devinit greth_of_probe(stru + /* If we have EDCL we disable the EDCL speed-duplex FSM so + * it doesn't interfere with the software */ + if (greth->edcl != 0) +- GRETH_REGORIN(regs->control, GRETH_CTRL_DISDUPLEX); ++ GRETH_REGORIN(regs->control, GRETH_CTRL_DISDUPLEX|GRETH_CTRL_EE); + + /* Check if MAC can handle MDIO interrupts */ + greth->mdio_int_en = (tmp >> 26) & 1; +--- a/drivers/net/greth.h ++++ b/drivers/net/greth.h +@@ -15,6 +15,7 @@ + #define GRETH_CTRL_PSTATIEN 0x400 + #define GRETH_CTRL_MCEN 0x800 + #define GRETH_CTRL_DISDUPLEX 0x1000 ++#define GRETH_CTRL_EE 0x4000 + #define GRETH_STATUS_PHYSTAT 0x100 + + #define GRETH_BD_EN 0x800 |