openwrtv3/target/linux/ar71xx
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
..
base-files ar71xx: add Support for RB2011UiAS-2HnD 2014-08-28 06:27:45 +00:00
files ath79: dev-eth: Don't advertise 1gbit in link code word on ar9331 2014-09-07 09:45:32 +00:00
files-3.10/arch/mips/ath79 ar71xx: add linux 3.14 support 2014-08-07 12:40:53 +00:00
generic add support for the NC-LINK SMART-300 2014-08-11 11:44:51 +00:00
image ar71xx: build factory image for EnGenius ESR900 and ESR1750 2014-08-18 13:09:34 +00:00
mikrotik ar71xx: added support for TL-WA830RE V2 2014-07-13 07:12:22 +00:00
nand ar71xx: add RTC feature flag to ar71xx/nand 2014-08-01 10:32:55 +00:00
patches-3.10 ar71xx: select m25p80 support instead of spi support where used by mach files (#17699) 2014-08-29 21:10:39 +00:00
patches-3.14 ar71xx: select m25p80 support instead of spi support where used by mach files (#17699) 2014-08-29 21:10:39 +00:00
base-files.mk ar71xx: drop procd_init console hack 2013-06-21 16:53:11 +00:00
config-3.10 add support for the NC-LINK SMART-300 2014-08-11 11:44:51 +00:00
config-3.14 add support for the NC-LINK SMART-300 2014-08-11 11:44:51 +00:00
Makefile kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
modules.mk ar71xx: always enable hw ecc support for the ar934x-nfc module 2013-11-01 18:33:18 +00:00