Skip to contentSkip to conversation

i40e: Fix parameters in aq_get_phy_register()

PATCH New Grzegorz Siwik 2 participants 2 messages Mar 19, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 i40e: Fix parameters in aq_get_phy_register()

Change parameters order in aq_get_phy_register() due to wrong statistics in PHY reported by ethtool. Previosly all PHY statistics were exactly the same for all interfaces
Now statistics are reported correctly - different for different interfaces

Fixes 0514db37dd78 ("i40e: Extend PHY access with page change flag")

---
v2:
-Fixed typos in commit message

---
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +1 -1
index 96d5202..0e92668 100644
@@ -5480,7 +5480,7 @@ static int i40e_get_module_eeprom(struct net_device *netdev,
 
 		status = i40e_aq_get_phy_register(hw,
 				I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,
-				true, addr, offset, &value, NULL);
+				addr, true, offset, &value, NULL);
 		if (status)
 			return -EIO;
 		data[i] = value;
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH v2 1/1 i40e: Fix parameters in aq_get_phy_register()

Quoted 2 lines · Grzegorz Siwik

Change parameters order in aq_get_phy_register() due to wrong statistics in PHY reported by ethtool. Previosly all PHY statistics

s/Previosly/Previously

Quoted 6 lines

were
exactly the same for all interfaces
Now statistics are reported correctly - different for different interfaces

Fixes 0514db37dd78 ("i40e: Extend PHY access with page change flag")

Since this has a fixes, I beleive it's for net, but you marked this as net-next. Which tree are you targeting?

Quoted 4 lines

---
v2:
-Fixed typos in commit message

This is marked as v2, but I don't recall seeing a v1 on this mailing list.

Quoted 19 lines
---
 drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +1 -1
index 96d5202..0e92668 100644
@@ -5480,7 +5480,7 @@ static int i40e_get_module_eeprom(struct
 net_device *netdev,
 
 		status = i40e_aq_get_phy_register(hw,
 				I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,
-				true, addr, offset, &value, NULL);
+				addr, true, offset, &value, NULL);
 		if (status)
 			return -EIO;

data[i] = value;