net: phy: bcm7xxx: Add missing 16nm EPHY statistics
Subsystems (4)
Florian Fainelli
maintainerPATCH v2 1/1 net: phy: bcm7xxx: Add missing 16nm EPHY statistics
The .probe() function would allocate the necessary space and ensure that the library call sizes the nunber of statistics but the callbacks necessary to fetch the name and values were not wired up.
--- drivers/net/phy/bcm7xxx.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/phy/bcm7xxx.c +3 -0
@@ -894,6 +894,9 @@ static int bcm7xxx_28nm_probe(struct phy_device *phydev) .name = _name, \/* PHY_BASIC_FEATURES */ \ .flags = PHY_IS_INTERNAL, \ + .get_sset_count = bcm_phy_get_sset_count, \ + .get_strings = bcm_phy_get_strings, \ + .get_stats = bcm7xxx_28nm_get_phy_stats, \ .probe = bcm7xxx_28nm_probe, \ .config_init = bcm7xxx_16nm_ephy_config_init, \ .config_aneg = genphy_config_aneg, \
Signature · 1 line
2.34.1
Quoted 8 lines · Florian Fainelli
The .probe() function would allocate the necessary space and ensure that the library call sizes the nunber of statistics but the callbacks necessary to fetch the name and values were not wired up.
Reported-by Justin Chen <[email protected]>Fixes f68d08c437f9 ("net: phy: bcm7xxx: Add EPHY entry for 72165")Reviewed-by Andrew Lunn <[email protected]>Signed-off-by Florian Fainelli <[email protected]>
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Tue, 17 Oct 2023 13:51:19 -0700 you wrote:
The .probe() function would allocate the necessary space and ensure that the library call sizes the nunber of statistics but the callbacks necessary to fetch the name and values were not wired up.
Reported-by Justin Chen <[email protected]>Fixes f68d08c437f9 ("net: phy: bcm7xxx: Add EPHY entry for 72165")Reviewed-by Andrew Lunn <[email protected]>Signed-off-by Florian Fainelli <[email protected]>[...]
Here is the summary with links:
- [net,v2] net: phy: bcm7xxx: Add missing 16nm EPHY statistics
https://git.kernel.org/netdev/net/c/6200e00e112c
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html