net: phy: Add PHY_RTL8211E_PINE64_GIGABIT_FIX for realtek phys
authorkevans@FreeBSD.org <kevans@FreeBSD.org>
Wed, 14 Feb 2018 23:02:15 +0000 (17:02 -0600)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 22 Mar 2018 20:05:27 +0000 (15:05 -0500)
commit66526e70381dbaad58533cfbd7bce07c668205c6
treec37d3a1d4fd93dbe5f35d6a0f357ca127f12531e
parent2511930193a420eb8bb6cfa9c60912626f68ae67
net: phy: Add PHY_RTL8211E_PINE64_GIGABIT_FIX for realtek phys

Setting PHY_RTL8211E_PINE64_GIGABIT_FIX forces internal rx/tx delays off
on the PHY, as well as flipping some magical undocumented bits. The
magic number comes from the Pine64 engineering team, presumably as a
proxy from Realtek. This configuration fixes the throughput on some
Pine64 models. Packet loss of up to 60-70% has been observed without
this.

Signed-off-by: Kyle Evans <kevans@FreeBSD.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/Kconfig
drivers/net/phy/realtek.c