Patch "i40e: Fix parameters in aq_get_phy_register()" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    i40e: Fix parameters in aq_get_phy_register()

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     i40e-fix-parameters-in-aq_get_phy_register.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9fd470820949647b3e5ce5d408dd1d008777f3d2
Author: Grzegorz Siwik <grzegorz.siwik@xxxxxxxxx>
Date:   Wed Mar 24 09:58:27 2021 +0100

    i40e: Fix parameters in aq_get_phy_register()
    
    [ Upstream commit b2d0efc4be7ed320e33eaa9b6dd6f3f6011ffb8e ]
    
    Change parameters order in aq_get_phy_register() due to wrong
    statistics in PHY reported by ethtool. Previously 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")
    Signed-off-by: Grzegorz Siwik <grzegorz.siwik@xxxxxxxxx>
    Tested-by: Dave Switzer <david.switzer@xxxxxxxxx>
    Signed-off-by: Tony Nguyen <anthony.l.nguyen@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
index 849e38be69ff..31d48a85cfaf 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c
@@ -5285,7 +5285,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;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux