]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd88cad822e2ebb8d629e2d73fbd301ba99c77b4
tree4535bd2d62a2586853e2cab59e306896be43988e
parent4228ae965a2bb29a7b2def2908ef258ab77ecaac
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