r8169: add checking driver's runtime pm status in rtl8169_get_ethtool_stats()
authorChun-Hao Lin <hau@realtek.com>
Fri, 29 Jul 2016 08:37:55 +0000 (16:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2016 03:34:05 +0000 (20:34 -0700)
commite06362369ae1e5b0ba70b66f8703ff08bcb63b23
tree651fcc709247bce7d570bdc9534ee561a6aeb120
parent5fa80a326d9dbd79d83148768c618e2da69e98e0
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>
drivers/net/ethernet/realtek/r8169.c