]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "lan78xx: add ndo_get_stats64"
authorDavid S. Miller <davem@davemloft.net>
Sun, 20 Mar 2016 20:53:42 +0000 (16:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Mar 2016 20:53:42 +0000 (16:53 -0400)
commitb63d5c036e8905e5905b1abb478b259ad1ddd218
treefc59a88e91df71412082028922a172cda401683b
parent4d142c89792d90097e57792a59247c79753456db
Revert "lan78xx: add ndo_get_stats64"

This reverts commit 207401697e7bf570cab918130b66adf3c4bfa48a.

There are several bugs in this new code, for example:

1) Uses sleeping locks in get_stats64, which is not allowed,
   as the operation can be invoked in an atomic context.

2) Uses PM fields without CONFIG_PM or similar guards.

3) Does not synchronize HW stats when the device runtime
   suspends.

Therefore this is being reverted until a correct version
is implemented.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c