openwrtv4/target/linux
Felix Fietkau 6413f40e96 ar71xx: fix ethernet on wnr2000-v4
Most people report broken ethernet with upstream. Last year, user "franz.flasch"
authored a working mach-file. His patch is outdated so I modernized it. Original
patch and user commentary on page 1:
https://forum.openwrt.org/viewtopic.php?pid=260861#p260861

I have figured out what the critical differences are between the two that caused
upstream ethernet to break.
  1) Both ath79_init_mac() functions calls must be invocated before any GMAC init
  2) must init GMAC0 before GMAC1

That was enough to get upstream to function, but I wanted to enjoy my confidence
having tested franz's patch for a week sucessfully, so I put his whole
function in, which only features more differences in order of function calls.

An expert should consider these changes, which could pose potential bugs/issues:
1) No longer using the flag AR934X_ETH_CFG_SW_PHY_SWAP in the
ath79_setup_ar934x_eth_cfg() call.

2) Possible consequence of no longer explicitly setting ethernet duplex/speed.

Review: With this patch, my ethernet and wireless works.

Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com>

SVN-Revision: 45633
2015-05-08 12:23:45 +00:00
..
adm5120 adm5120: drop 3.8 and 3.14 support 2015-03-16 07:41:19 +00:00
adm8668 adm8668: drop 3.14 2015-04-11 10:28:06 +00:00
ar7 ar7: drop 3.14 support 2015-03-16 07:41:10 +00:00
ar71xx ar71xx: fix ethernet on wnr2000-v4 2015-05-08 12:23:45 +00:00
arm64 arm64: remove CGROUPS override 2015-04-04 19:33:32 +00:00
at91 kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
ath25 ath25: set myself as maintainer 2015-03-13 03:02:34 +00:00
au1000 au1000: drop 005-fix-cpu-clk.patch 2015-03-22 07:03:02 +00:00
bcm53xx bcm53xx: sort ports from NVRAM entries before matching them 2015-04-24 07:47:25 +00:00
brcm47xx brcm47xx: fix regression in NVRAM support for WGT634U 2015-05-06 05:54:19 +00:00
brcm63xx brcm63xx: fix bcm6348 ext irqc compatible name 2015-04-27 11:06:05 +00:00
brcm2708 brcm2708: remove a patch that was added in the stable update (fixes #19253) 2015-03-21 21:24:08 +00:00
cns3xxx cns3xxx: drop 3.14 support 2015-03-16 07:40:41 +00:00
gemini gemini: fix usb driver compilation on 3.18 2015-03-27 16:03:16 +00:00
generic kernel: backport upstream usbnet fix (fixes #19455) 2015-05-06 10:19:22 +00:00
imx6 imx6: put uboot-envtools in DEFAULT_PACKAGES 2015-04-17 13:47:13 +00:00
ipq806x ipq806x: add db149 support to OpenWrt init scripts 2015-04-21 07:15:47 +00:00
ixp4xx ixp4xx: fix beeper module dependencies 2015-04-01 09:03:13 +00:00
kirkwood kernel: disable INET_LRO by default 2015-04-28 13:31:08 +00:00
lantiq The ability to read MAC addresses from MTD is useful for other targets besides ramips and lantiq as well. 2015-05-03 17:56:32 +00:00
malta drop 3.19 support 2015-03-26 09:42:59 +00:00
mcs814x mcs814x: drop 3.14 2015-04-11 10:28:03 +00:00
mpc85xx mpc85xx: replace WDR4900 uci-defaults ethernet MAC address hack with DTS entry 2015-05-03 18:00:47 +00:00
mvebu mvebu: add xhci phy support 2015-05-08 12:12:20 +00:00
mxs mxs: reinstate rootfs image creation and dtb copy 2015-04-10 21:36:33 +00:00
netlogic netlogic: copy initramfs image to $(BIN_DIR) 2015-04-23 22:31:36 +00:00
octeon octeon: add er8 sysupgrade support 2015-03-20 08:49:08 +00:00
omap omap: add missing symbols 2015-04-02 14:32:01 +00:00
omap24xx omap24xx: Add basic config for linux-4.0 2015-03-19 18:45:32 +00:00
orion kernel: disable INET_LRO by default 2015-04-28 13:31:08 +00:00
oxnas kernel: disable INET_LRO by default 2015-04-28 13:31:08 +00:00
ppc40x ppc40x: upgrade to 3.18 2015-04-12 20:48:13 +00:00
ppc44x ppc44x: use the mtdsplit framework for the Taishan 2015-03-11 12:20:03 +00:00
pxa kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED 2015-03-06 07:56:34 +00:00
ramips The ability to read MAC addresses from MTD is useful for other targets besides ramips and lantiq as well. 2015-05-03 17:56:32 +00:00
rb532 rb532: remove linux 3.14 support 2015-03-28 13:20:58 +00:00
realview realview: drop 3.14 support 2015-03-16 07:40:02 +00:00
sunxi sunxi: don't enable ARMTHUMB XZ BCJ filter in kernel 2015-04-10 08:29:26 +00:00
uml uml: remove linux 3.14 support 2015-03-28 13:20:52 +00:00
x86 all: replace genext2fs with make_ext4fs 2015-04-20 13:57:43 +00:00
xburst kernel: CONFIG_BRIDGE should not be overridden 2015-04-05 07:40:38 +00:00
Makefile Add kernel_nconfig make target 2010-08-06 21:36:35 +00:00