]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e79463f4616cb57f34dc886323bb529907a38c7
tree651fcc709247bce7d570bdc9534ee561a6aeb120
parent74f97dbc36f13e32a095100f3ae42845b0826875
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