ar71xx: fix 100/10mbps ethernet link issues on mynet range extender
authorFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 17:41:01 +0000 (17:41 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 17:41:01 +0000 (17:41 +0000)
commit9aca50fb00c3ec8177a4e5069d8723570eca560d
treebcff0db2eaf17655afb689978181fcf7133b6988
parent4a5a71ea72dad7cce49926247991469742a7d279
ar71xx: fix 100/10mbps ethernet link issues on mynet range extender

The mynet range extender hardware is suffering from ethernet
link loss when booting with a recent openwrt image. This only
happens on 100mbps links, with 1Gbps speed the link was fine.

The cause of the problem is that the AR8035 PHY (aka F1E)
requires turning on and off the special TX delay setting
depending on the speed of the link.

The 10mbps mode only needed the proper pll value, which was
extracted from the vendor code.

Reported-by: Pascal Paradis
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45954 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-rext.c
target/linux/ar71xx/patches-3.18/425-net-phy-at803x-allow-to-configure-via-pdata.patch