Skip to contentSkip to conversation

net: phy: bcm7xxx: Add missing 16nm EPHY statistics

PATCH Superseded Florian Fainelli 4 participants 4 messages Oct 16, 2023 – Oct 17, 2023

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Florian Fainelli

author maintainer
#0 lore raw

PATCH 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.

Fixes 1b89b3dce34c ("net: phy: bcm7xxx: Add EPHY entry for 72165")
---
 drivers/net/phy/bcm7xxx.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/phy/bcm7xxx.c +3 -0
index 8478b081c058..97638ba7ae85 100644
@@ -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
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 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.

Fixes 1b89b3dce34c ("net: phy: bcm7xxx: Add EPHY entry for 72165")

Andrew

reviewer
#2 lore raw
In reply to Florian Fainelli
Quoted 6 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.

Fixes 1b89b3dce34c ("net: phy: bcm7xxx: Add EPHY entry for 72165")

Should the fixes tag be as follows?

Fixes f68d08c437f9 ("net: phy: bcm7xxx: Add EPHY entry for 72165")
Quoted 1 line

...

#3 lore raw
Quoted 11 lines · Simon Horman
Quoted 6 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.

Fixes 1b89b3dce34c ("net: phy: bcm7xxx: Add EPHY entry for 72165")

Should the fixes tag be as follows?

Fixes f68d08c437f9 ("net: phy: bcm7xxx: Add EPHY entry for 72165")

Yes it should, it looks like 1b89b3dce34c was from our downstream tree. Let me re-submit with the correct Fixes tag then, thanks Simon!

Signature · 1 line
Florian