lan78xx: handle statistics counter rollover
authorWoojung Huh <woojung.huh@microchip.com>
Wed, 16 Mar 2016 22:10:40 +0000 (22:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Mar 2016 02:27:48 +0000 (22:27 -0400)
commit20ff55655a93554611fb7790c8a2d29ee4598d24
tree4535bd2d62a2586853e2cab59e306896be43988e
parent7fa7728d23e7928dfb6e9f5540a97fb2d562b989
lan78xx: handle statistics counter rollover

Update to handle statistics counter rollover.
Check statistics counter periodically and compensate it when
counter value rolls over at max (20 or 32bits).

Simple mechanism adjusts monitoring timer to allow USB auto suspend.

Signed-off-by: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c