[PATCH net-next] r8169:add support for RTL8168EP

2014-09-26 Thread Chun-Hao Lin
RTL8168EP is Realtek PCIe Gigabit Ethernet controller. It is a successor chip of RTL8168DP. This patch add support for this chip. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 611 +-- 1 file changed, 514 insertions(+), 97 deletions

[PATCH net-next 06/10] r8169:change function name and behavior of function "rtl_w1w0_phy"

2014-09-30 Thread Chun-Hao Lin
Change function name from "rtl_w1w0_phy" to "rtl_w0w1_phy". And its behavior from "or first then mask" to "mask first then or". Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 176 +-- 1 file changed,

[PATCH net-next 09/10] r8169:modify the behavior of function "rtl8168_oob_notify"

2014-09-30 Thread Chun-Hao Lin
l8168_oob_notify" related functions under function "rtl_eri_write". Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 99 +--- 1 file changed, 46 insertions(+), 53 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169.c b/driv

[PATCH net-next 02/10] r8169:add disable/enable RTL8168G pll function

2014-09-30 Thread Chun-Hao Lin
Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 000bd6c..6d68229 100644 --- a/drivers/net/ethernet/realtek/r8169.c +++ b/drivers/net

[PATCH net-next 04/10] r8168:add support more chips to get mac address from backup mac address register

2014-09-30 Thread Chun-Hao Lin
RTL8168FB RTL8168G RTL8168GU RTL8411 RTL8411B RTL8106EUS RTL8402 can get mac address from backup mac address register. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet

[PATCH net-next 01/10] r8169:change uppercase number to lowercase nubmer

2014-09-30 Thread Chun-Hao Lin
Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 1d81238..000bd6c 100644 --- a/drivers/net/ethernet

[PATCH net-next 08/10] r8169:change function name of function "r8168dp_check_dash" to "r8168_check_dash"

2014-09-30 Thread Chun-Hao Lin
Dash function not only RTL8168DP can support, but also RTL8168EP. So change the function name of function "r8168dp_check_dash" to "r8168_check_dash". Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deleti

[PATCH net-next 03/10] r8169:add disable/enable RTL8168GU mcu power managment interrupt

2014-09-30 Thread Chun-Hao Lin
RTL8168GU also need to disable/enable mcu power managment interrupt before disable/eable pll. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c

[PATCH net-next 05/10] r8169:add more chips to support magic packet v2

2014-09-30 Thread Chun-Hao Lin
For RTL8168F RTL8168FB RTL8168G RTL8168GU RTL8411 RTL8411B RTL8402 RTL8107E, the magic enable bit is changed to eri 0xde bit0. In this patch, change magic packet enable bit of these chips to eri 0xde bit0. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 36

[PATCH net-next 07/10] r8169:change function name of function "rtl_w1w0_eri"

2014-09-30 Thread Chun-Hao Lin
Change the name of this function to "rtl_w0_w1_eri". It is more suitable for this function's behavior. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 58 ++-- 1 file changed, 29 insertions(+), 29 deletions(-) diff --gi

[PATCH net-next 10/10] r8169:call "rtl8168_driver_start" "rtl8168_driver_stop" only when dash is enabled

2014-09-30 Thread Chun-Hao Lin
These two functions are to inform dash firmware driver is been brought up or brought down. So only call these two functions when dash is enabled. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git

[PATCH net-next v2] r8169:add support for RTL8168H and RTL8107E

2014-08-19 Thread Chun-Hao Lin
RTL8168H is Realtek PCIe Gigabit Ethernet controller. RTL8107E is Realtek PCIe Fast Ethernet controller. This patch add support for these two chips. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 470 +-- 1 file changed, 452 insertions

[PATCH net-next] r8169:add support for RTL8168H and RTL8107E

2014-08-13 Thread Chun-Hao Lin
RTL8168H is Realtek PCIe Gigabit Ethernet controller. RTL8107E is Realtek PCIe Fast Ethernet controller. This patch add support for these two chips. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 472 +-- 1 file changed, 453 insertions

[PATCH v3 net-next] r8169:add support for RTL8168EP

2014-10-06 Thread Chun-Hao Lin
checking if dash is enabled and setting driver start/stop are also different with RTL8168DP. Right now, RTL8168EP phy mcu did not need patch firmware code, so I did not add firmware code for it. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 512

[PATCH v4 net-next] r8169:add support for RTL8168EP

2014-10-07 Thread Chun-Hao Lin
. I use rtl8168dp_driver_xxx() for RTL8168DP and rtl8168ep_driver_xxx for RTL8168EP. Right now, RTL8168EP phy mcu did not need firmware code patch, so I did not add firmware code for it. so I did not add firmware code for it. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c

[PATCH v2 net-next 05/10] r8169:add more chips to support magic packet v2

2014-10-01 Thread Chun-Hao Lin
For RTL8168F RTL8168FB RTL8168G RTL8168GU RTL8411 RTL8411B RTL8402 RTL8107E, the magic packet enable bit is changed to eri 0xde bit0. In this patch, change magic packet enable bit of these chips to eri 0xde bit0. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 36

[PATCH v2 net-next 08/10] r8169:change the name of function "r8168dp_check_dash" to "r8168_check_dash"

2014-10-01 Thread Chun-Hao Lin
DASH function not only RTL8168DP can support, but also RTL8168EP. So change the name of function "r8168dp_check_dash" to "r8168_check_dash". Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v2 net-next 10/10] r8169:call "rtl8168_driver_start" "rtl8168_driver_stop" only when hardware dash function is enabled

2014-10-01 Thread Chun-Hao Lin
These two functions are used to inform dash firmware that driver is been brought up or brought down. So call these two functions only when hardware dash function is enabled. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 14 -- 1 file changed, 8 insertions

[PATCH v2 net-next 07/10] r8169:change the name of function"rtl_w1w0_eri"

2014-10-01 Thread Chun-Hao Lin
uot;xx_w0w1_xx". The changed function name is more suitable for it's behavior. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 58 ++-- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/drivers/net/ethernet/realtek/r

[PATCH v2 net-next 09/10] r8169:modify the behavior of function "rtl8168_oob_notify"

2014-10-01 Thread Chun-Hao Lin
o move down "rtl8168_oob_notify" related functions under the function "rtl_eri_write". Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 99 +--- 1 file changed, 46 insertions(+), 53 deletions(-) diff --git a/drivers/ne

[PATCH v2 net-next 01/10] r8169:change uppercase number to lowercase nubmer

2014-10-01 Thread Chun-Hao Lin
Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 1d81238..000bd6c 100644 --- a/drivers/net/ethernet

[PATCH v2 net-next 03/10] r8169:add disable/enable RTL8411B pll function

2014-10-01 Thread Chun-Hao Lin
RTL8411B can support disable/enable pll function. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 93f8d3f..86c55a0 100644 --- a/drivers

[PATCH v2 net-next 02/10] r8169:add disable/enable RTL8168G pll function

2014-10-01 Thread Chun-Hao Lin
RTL8168G also can disable/enable pll function. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index 000bd6c..93f8d3f 100644 --- a/drivers/net

[PATCH v2 net-next 04/10] r8169:add support more chips to get mac address from backup mac address register

2014-10-01 Thread Chun-Hao Lin
RTL8168FB RTL8168G RTL8168GU RTL8411 RTL8411B RTL8106EUS RTL8402 can support get mac address from backup mac address register. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/net

[PATCH v2 net-next 06/10] r8169:for function "rtl_w1w0_phy" change its name and behavior

2014-10-01 Thread Chun-Hao Lin
to port hardware parameters from Realtek internal driver to Linux kernal driver "r8169", we would like to change this function's behavior and its name. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 176 +-- 1 file changed, 88

[PATCH v2 net-next] r8169:add support for RTL8168EP

2014-10-03 Thread Chun-Hao Lin
enabled and setting driver start/stop are also different with RTL8168DP. Right now, RTL8168EP phy mcu did not need patch firmware code, so I did not add firmware code for it. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 512 --- 1 file

[PATCH net-next] r8169: add support for RTL8168 series add-on card.

2016-12-27 Thread Chun-Hao Lin
This chip is the same as RTL8168, but its device id is 0x8161. Signed-off-by: Chun-Hao Lin --- drivers/net/ethernet/realtek/r8169.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c index f9b97f5..44389c9 100644