aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-03-30 09:15:46 +0000
committerJohn Crispin <blogic@openwrt.org>2014-03-30 09:15:46 +0000
commitb64ca40dfb181ae94db44361fa33961863510186 (patch)
treec914bbf6f95709d8f0b212c7bd999cb2b4a16f20 /target
parent9b9581a940648bf4ac6b3d6f4214b862baf2155b (diff)
downloadupstream-b64ca40dfb181ae94db44361fa33961863510186.tar.gz
upstream-b64ca40dfb181ae94db44361fa33961863510186.tar.bz2
upstream-b64ca40dfb181ae94db44361fa33961863510186.zip
lantiq: xrx200: fix duplex
Both the GPL driver from ZyXEL and the xrx200 driver have this error. The flags are reversed. Full duplex is marked as half and the other way around. With this fix the switch will push full GBit speeds. Signed-off-by: Antonios Vamporakis <ant@area128.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40312 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/lantiq/patches-3.10/0204-lantiq-xrx200-duplex-fix.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.10/0204-lantiq-xrx200-duplex-fix.patch b/target/linux/lantiq/patches-3.10/0204-lantiq-xrx200-duplex-fix.patch
new file mode 100644
index 0000000000..92f0dcee78
--- /dev/null
+++ b/target/linux/lantiq/patches-3.10/0204-lantiq-xrx200-duplex-fix.patch
@@ -0,0 +1,13 @@
+--- a/drivers/net/ethernet/lantiq_xrx200.c
++++ b/drivers/net/ethernet/lantiq_xrx200.c
+@@ -101,8 +101,8 @@
+ #define MDIO_PHY_SPEED_M100 0x0800
+ #define MDIO_PHY_SPEED_G1 0x1000
+
+-#define MDIO_PHY_FDUP_EN 0x0600
+-#define MDIO_PHY_FDUP_DIS 0x0200
++#define MDIO_PHY_FDUP_EN 0x0200
++#define MDIO_PHY_FDUP_DIS 0x0600
+
+ #define MDIO_PHY_LINK_MASK 0x6000
+ #define MDIO_PHY_SPEED_MASK 0x1800