provides signficant (200mW) power
savings on the platform I tested.
I make some modification that let this patch only for RTL8168G and later.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 73
1 file changed, 50 insertions
provides signficant (200mW) power
savings on the platform I tested.
I make some modification that let this patch only for RTL8168G and later.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 73
1 file changed, 50 insertions
Driver check the wrong register bit in rtl_ocp_tx_cond() that keep driver
waiting until timeout.
Fix this by waiting for the right register bit.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers
If tx timeout event occur, kernel will call rtl8139_tx_timeout_task() to reset
hardware. But in this function, driver does not stop tx and rx function before
reset hardware, that will cause system hang.
In this patch, add stop tx and rx function before reset hardware.
Signed-off-by: Chunhao Lin
v2:
use "struct device *d = &tp->pci_dev->dev" instead of "struct pci_dev *pdev =
tp->pci_dev"
v1:
This series of patches fix 3 runtime pm related issues that are listed below.
Chunhao Lin (3):
r8169:fix kernel log spam when set or get hardware wol setti
. That will let driver thinking register flag is not toggled and
then prints the warning message "rtl_counters_cond == 1 (loop: 1000,
delay: 10)" to kernel log.
For fixing this issue, add checking driver's pm runtime status in
rtl8169_get_wol() and rtl8169_set_wol().
Signed-off-
Not to call rtl8169_update_counters() to dump tally counter when driver
is in runtime suspend state.
Calling rtl8169_update_counters() in runtime suspend state will produce
warning message "rtl_counters_cond == 1 (loop: 1000, delay: 10)".
Signed-off-by: Chunhao Lin
---
drivers/ne
patch I add detecting runtime pm status when setting mac address.
If driver is in runtime suspend state, it will skip setting mac address, keep
the new mac address, and set the new mac address during runtime resume.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 9 -
1
If tx timeout event occur, kernel will call rtl8139_tx_timeout_task() to reset
hardware. But in this function, driver does not stop tx and rx function before
reset hardware, that will cause system hang.
In this patch, add stop tx and rx function before reset hardware.
Signed-off-by: Chunhao Lin
Not to call rtl8169_update_counters() to dump tally counter when driver is in
runtime suspend state.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c
b/drivers/net
This series of patches fix 3 runtime pm related issues that are listed below.
Chunhao Lin (3):
r8169:fix kernel log spam when set or get hardware wol setting.
r8169:add checking driver's runtime pm status in rtl8169_get_ethtool_stats()
r8169:fix nic may not work after changing th
patch I add detecting runtime pm status when setting mac address.
If driver is in runtime suspend state, it will skip setting mac address and
set the new mac address during runtime resume.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 9 -
1 file changed, 8 insertions
will let driver thinking register flag is not toggled and then prints
the warning message "rtl_counters_cond == 1 (loop: 1000, delay: 10)" to kernel
log.
For fixing this issue, add checking driver's pm runtime status in
rtl8169_get_wol() and rtl8169_set_wol().
Signed-off-
://bugs.launchpad.net/ubuntu/+source/linux/+bug/1547151
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c
b/drivers/net/ethernet/realtek/r8169.c
index dd2cf37..94f08f1 100644
--- a/drivers
://bugs.launchpad.net/ubuntu/+source/linux/+bug/1547151
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c
b/drivers/net/ethernet/realtek/r8169.c
index dd2cf37..94f08f1 100644
--- a
For RTL8168G/RTL8168H/RTL8411B/RTL8107E, enable this flag to eliminate
message "AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0002
address=0x3000 flags=0x0050] in dmesg.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 4
1 file chang
This series of patches fix 3 issues that are listed below.
Chunhao Lin (3):
r8169:fix nic sometimes doesn't work after changing the mac address.
r8169:eliminate error message in using ethtool -S when nic is down.
r8169: Enable RX_MULTI_EN for RTL_GIGA_MAC_VER_41~48
drivers/net/eth
For RTL8168G/RTL8168H/RTL8411B/RTL8107E, enable this flag to eliminate message
"AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0002
address=0x3000 flags=0x0050] in dmesg.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 4
1 file chang
tch I add detecting runtime pm state when setting mac address. If
driver is in runtime suspend, I will skip setting mac address and set the new
mac address during runtime resume.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 10 +-
1 file changed, 9 insertions(
ing driver runtime pm state. If driver is in runtime
suspend state, I will skip dump tall counter.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c
b/drivers/ne
the warning message "rtl_counters_cond
== 1 (loop: 1000, delay: 10)" to kernel log.
For fixing this issue, 1.add checking driver's pm runtime status in
rtl8169_get_stats64(). 2.dump tally counter before going runtime suspend
for counter accuracy in runtime suspend.
Signed-off-
sends the warning message "rtl_counters_cond == 1 (loop: 1000,
delay: 10)" to kernel log.
For fixing this issue,
1.add checking driver's pm runtime status in rtl8169_get_stats64().
2.dump tally counter before going runtime suspend for counter accuracy in
runtime suspend.
Signed-
sends the warning message "rtl_counters_cond == 1 (loop: 1000,
delay: 10)" to kernel log.
For fixing this issue,
1.add checking driver's pm runtime status in rtl8169_get_stats64().
2.dump tally counter before going runtime suspend for counter accuracy in
runtime suspend.
Signed-off-
sends the warning message "rtl_counters_cond == 1 (loop: 1000,
delay: 10)" to kernel log.
I add checking driver's pm runtime status in rtl8169_get_stats64() to fix
this issue.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 10 --
1 file changed, 8 i
There are typos in setting RTL8168H hardware parameters. If system install
another version driver that may cuase system hang.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/net
The PHY PFM register is in PHY page 0x0a44 register 0x11, not 0x14.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c
b/drivers/net/ethernet/realtek/r8169.c
index
The typos are in setting RTL8168DP, RTL8168EP and RTL8168H hardware parameters.
This series of patch fix these typos.
Chunhao Lin (3):
r8169:Fix typo in setting RTL8168EP and RTL8168H D3cold PFM mode
r8169:Fix typo in setting RTL8168H PHY PFM mode.
r8169:Correct the way of setting RTL8168DP
The register for setting D3code PFM mode is MISC_1, not DLLPR.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c
b/drivers/net/ethernet/realtek/r8169.c
index
The original way is wrong, it always writes ephy reg 0x03.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 17 +
1 file changed, 5 insertions(+), 12 deletions(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c
b/drivers/net/ethernet/realtek/r8169.c
Fix typo in setting PHY parameter and update the way of reading PHY register
"rg_saw_cnt".
Chunhao Lin (2):
r8169:Fix typo in setting RTL8168H PHY parameter
r8169:Update the way of reading RTL8168H PHY register "rg_saw_cnt"
drivers/net/ethernet/realtek/r8169.c | 4 ++-
In function "rtl8168h_2_hw_phy_config", there is a typo in setting
RTL8168H PHY parameter.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/realtek/r8169.c
b/drivers/net/ethern
The vlaue of RTL8168H PHY register "rg_saw_cnt" only valid from bit0 to bit13.
When read this register, add bitwise-anding its value with 0x3fff.
Signed-off-by: Chunhao Lin
---
drivers/net/ethernet/realtek/r8169.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/d
32 matches
Mail list logo