commit | e06362369ae1e5b0ba70b66f8703ff08bcb63b23 | [log] [tgz] |
---|---|---|
author | Chun-Hao Lin <hau@realtek.com> | Fri Jul 29 16:37:55 2016 +0800 |
committer | David S. Miller <davem@davemloft.net> | Sun Jul 31 20:34:05 2016 -0700 |
tree | 651fcc709247bce7d570bdc9534ee561a6aeb120 | |
parent | 5fa80a326d9dbd79d83148768c618e2da69e98e0 [diff] |
r8169: add checking driver's runtime pm status in rtl8169_get_ethtool_stats() 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 <hau@realtek.com> Signed-off-by: David S. Miller <davem@davemloft.net>