]> git.baikalelectronics.ru Git - kernel.git/commit
net: Move PHY statistics code into PHY library helpers
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 25 Apr 2018 19:12:47 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 15:53:02 +0000 (11:53 -0400)
commitb87f211f3e38ee3b8ce7922e1414c21c027b9c44
tree9e841a2c973dd5fc1f68118fc722b232cab31198
parent1453b9f61303a62140532f3d42bf4a6fc99cd2b4
net: Move PHY statistics code into PHY library helpers

In order to make it possible for network device drivers that do not
necessarily have a phy_device attached, but still report PHY statistics,
have a preliminary refactoring consisting in creating helper functions
that encapsulate the PHY device driver knowledge within PHYLIB.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
include/linux/phy.h
net/core/ethtool.c