Skip to content

Commit 6200e00

Browse files
ffainellikuba-moo
authored andcommitted
net: phy: bcm7xxx: Add missing 16nm EPHY statistics
The .probe() function would allocate the necessary space and ensure that the library call sizes the number of statistics but the callbacks necessary to fetch the name and values were not wired up. Reported-by: Justin Chen <justin.chen@broadcom.com> Fixes: f68d08c ("net: phy: bcm7xxx: Add EPHY entry for 72165") Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20231017205119.416392-1-florian.fainelli@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 195374d commit 6200e00

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/phy/bcm7xxx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,9 @@ static int bcm7xxx_28nm_probe(struct phy_device *phydev)
894894
.name = _name, \
895895
/* PHY_BASIC_FEATURES */ \
896896
.flags = PHY_IS_INTERNAL, \
897+
.get_sset_count = bcm_phy_get_sset_count, \
898+
.get_strings = bcm_phy_get_strings, \
899+
.get_stats = bcm7xxx_28nm_get_phy_stats, \
897900
.probe = bcm7xxx_28nm_probe, \
898901
.config_init = bcm7xxx_16nm_ephy_config_init, \
899902
.config_aneg = genphy_config_aneg, \

0 commit comments

Comments
 (0)