]> git.baikalelectronics.ru Git - kernel.git/commit
r8169:update rtl8168g pcie ephy parameter
authorChun-Hao Lin <hau@realtek.com>
Wed, 10 Dec 2014 13:28:38 +0000 (21:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Dec 2014 02:38:52 +0000 (21:38 -0500)
commitdae3a1430870dc387f9245c10515d24bce39cbdf
treefa7c700c3171cd19c8f391b142b92ca3c2c77cab
parent3a8266b5eef25f0b96b81de8c24eaf2d12576701
r8169:update rtl8168g pcie ephy parameter

Add ephy parameter to rtl8168g.
Also change the common function of rtl8168g from "rtl_hw_start_8168g_1" to
 "rtl_hw_start_8168g". And function "rtl_hw_start_8168g_1" is used for
setting rtl8168g hardware parameters.

Following is the explanation of what hardware parameter change for.
rtl8168g may erroneous judge the PCIe signal quality and show the error bit
on PCI configuration space when in PCIe low power mode.
The following ephy parameters are for above issue.
{ 0x00, 0x0000, 0x0008 }
{ 0x0c, 0x37d0, 0x0820 }
{ 0x1e, 0x0000, 0x0001 }

rtl8168g may return to PCIe L0 from PCIe L0s low power mode too slow.
The following ephy parameter is for above issue.
{ 0x19, 0x8000, 0x0000 }

Signed-off-by: Chunhao Lin <hau@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c