lantiq: xrx200: fix duplex
authorJohn Crispin <john@openwrt.org>
Sun, 30 Mar 2014 09:15:46 +0000 (09:15 +0000)
committerJohn Crispin <john@openwrt.org>
Sun, 30 Mar 2014 09:15:46 +0000 (09:15 +0000)
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>
SVN-Revision: 40312

target/linux/lantiq/patches-3.10/0204-lantiq-xrx200-duplex-fix.patch [new file with mode: 0644]

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 (file)
index 0000000..92f0dce
--- /dev/null
@@ -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