]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: bcm7xxx: Plug in support for reading PHY error counters
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 29 Nov 2016 17:57:18 +0000 (09:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Nov 2016 15:22:27 +0000 (10:22 -0500)
commitbc07aed1f0896969d3e1d5f6d6e4bee9d83aaf87
treeb5df367d6fa9b47d49e635a8e23dc85b136dbff3
parentf4ef9e561f04097c8e86c280dc20b9552986f79e
net: phy: bcm7xxx: Plug in support for reading PHY error counters

Broadcom BCM7xxx internal PHYs can leverage the Broadcom PHY library
module PHY error counters helper functions, just implement the
appropriate PHY driver function calls to do so. We need to allocate some
storage space for our PHY statistics, and provide it to the Broadcom PHY
library, so do this in a specific probe function, and slightly wrap the
get_stats function call.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm7xxx.c