openwrt/target/linux
Felix Fietkau 60b81acd60 ath79: dev-eth: Don't advertise 1gbit in link code word on ar9331
While the AR9331 has a gigabit MAC towards the internal switch, the
integrated PHYs however are only 100-base-tx capable.  The existing code
however advertieses gigabit capability in the link status word.  If you
attach such a PHY to a gigabit capable switch on the remote end, with
some probability it attempts to negotiate gigabit and fails, falling
baco to the AR9331 assuming a 10mbit half-duplex link.  This has been
observed quite frequently with the Carambola2 and gigabit capable
switches.

In ath79_register_eth(), "pdata->has_gbit = 1;" is set unconditionally
for both AR9331 ethernet ports. This is most likely wrong. Despite the
two MAC IP cores being gigabit MACs, the MAC for eth1 is connected to a
100base-T PHY via MII. The has_gbit attribute is used in the ethernet
driver to determine the supported link modes.

So either pdata->has_gbit is not set to 1 anymore, or the ethernet
driver needs to be modified to determine the advertised link code word
on another criteria than pdata->has_gbit.  This patch implements the
former solution.

Signed-off-by: Harald Welte <laforge@gnumonks.org>

SVN-Revision: 42432
2014-09-07 09:45:32 +00:00
..
adm5120 target/linux/*: more dead package cleanups 2014-07-10 20:05:43 +00:00
adm8668 adm8668: revert changeset 34554 2014-08-16 18:09:31 +00:00
amazon
ar7 ar7: remove 972-cpmac_fixup patch 2014-08-16 17:32:46 +00:00
ar71xx ath79: dev-eth: Don't advertise 1gbit in link code word on ar9331 2014-09-07 09:45:32 +00:00
at91 at91: build images for AT91SAMA5D3XPLAINED 2014-09-03 03:11:25 +00:00
atheros atheros: remove linux 3.10 2014-09-06 17:51:35 +00:00
au1000 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
avr32 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
bcm53xx bcm53xx: update bcma device tree intergeneration and fix nvram parsing 2014-08-24 15:57:49 +00:00
brcm47xx kernel: 3.14: update bcm47xxpart 2014-08-18 21:57:54 +00:00
brcm63xx brcm63xx: Add DT support for P870HW-51a 2014-08-21 11:28:59 +00:00
brcm2708 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
cns3xxx cns3xxx: support isolated PCI interrupts on newer Laguna PCBs 2014-09-02 16:44:40 +00:00
cns21xx kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
cobalt cobalt: add support for kernel 3.10 2014-07-18 19:03:16 +00:00
ep93xx kernel: remove kernel 3.6 2014-07-26 12:23:56 +00:00
gemini kernel: do not build kernel modules by default 2014-07-06 22:34:24 +00:00
generic kernel: 3.14: refresh patches 2014-08-25 21:50:48 +00:00
imx6 imx6: refresh patches 2014-08-25 21:50:49 +00:00
iop32x
ipq806x ipx806x: bump to 3.14.16 2014-08-30 09:59:30 +00:00
ixp4xx kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
kirkwood kirkwood: fix typos on DEBUG_LL_UART_* 2014-08-30 00:32:05 +00:00
lantiq target: set myself as maintainer 2014-08-30 09:59:18 +00:00
malta target/linux/*/image/Makefile: eliminate more LINUX_DIR users 2014-07-21 18:42:11 +00:00
mcs814x build: unify arm target cflags 2013-09-26 17:53:20 +00:00
mpc52xx kernel: do not build kernel modules by default 2014-07-06 22:34:24 +00:00
mpc83xx target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
mpc85xx target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
mvebu kernel: update 3.14 to 3.14.16 2014-08-08 13:38:22 +00:00
mxs kernel: update 3.14 to 3.14.16 2014-08-08 13:38:22 +00:00
octeon octeon: update to 3.14 2014-08-18 13:09:24 +00:00
omap omap: remove 3.12 kernel patches 2014-09-02 17:00:46 +00:00
omap24xx additional musb fixups 2014-02-09 16:14:30 +00:00
orion orion: fix 3.10 kernel minor version 2014-07-31 23:40:44 +00:00
ppc40x target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
ppc44x target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
pxa pxa: add support for kernel 3.10 2014-07-18 20:45:49 +00:00
ramips target: set myself as maintainer 2014-08-30 09:59:18 +00:00
rb532 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
realview kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
sibyte build: unify mips target cflags 2013-09-26 17:53:14 +00:00
sparc kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
sunxi sunxi: bump kernel to 3.14.16 2014-09-06 15:59:06 +00:00
uml uml: bump to 3.14.16 2014-09-05 22:02:09 +00:00
x86 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
x86_64 kernel: update 3.14 to 3.14.16 2014-08-08 13:38:22 +00:00
xburst target/linux/*/image/Makefile: eliminate more LINUX_DIR users 2014-07-21 18:42:11 +00:00
Makefile