diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-02-20 17:07:56 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-02-20 17:07:56 +0000 |
commit | 4e0309630b871ecaf9e247b479c4a4ef3f9667f8 (patch) | |
tree | b6a7a4b397f6e8764d606c70ee16cd5e90009d87 /target/linux/ar71xx/files | |
parent | d19b868b12a3d76addbf0d16a854f2d5976f7608 (diff) | |
download | upstream-4e0309630b871ecaf9e247b479c4a4ef3f9667f8.tar.gz upstream-4e0309630b871ecaf9e247b479c4a4ef3f9667f8.tar.bz2 upstream-4e0309630b871ecaf9e247b479c4a4ef3f9667f8.zip |
ar71xx: rb91x: fix pll_1000 value for eth0 to avoid packet loss
When the RB91x device uses a GbE link the connection
suffers from packet loss:
root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 20 -q
PING 192.168.1.254 (192.168.1.254): 65507 data bytes
--- 192.168.1.254 ping statistics ---
20 packets transmitted, 9 packets received, 55% packet loss
round-trip min/avg/max = 4.570/4.815/4.999 ms
Using a different PLL value fixes the issue.
root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 100 -q
PING 192.168.1.254 (192.168.1.254): 65507 data bytes
--- 192.168.1.254 ping statistics ---
100 packets transmitted, 100 packets received, 0% packet loss
round-trip min/avg/max = 4.449/5.413/13.870 ms
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39642
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c index 65d9ee5b9d..3cbffed291 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb91x.c @@ -156,6 +156,7 @@ static void __init rb711gr100_setup(void) ath79_init_mac(ath79_eth0_data.mac_addr, ath79_mac_base, 0); ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ath79_eth0_data.phy_mask = BIT(0); + ath79_eth0_pll_data.pll_1000 = 0x02000000; ath79_register_eth(0); |