]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
ice: remove invalid parameter of equalizer
authorMateusz Polchlopek <mateusz.polchlopek@intel.com>
Tue, 31 Dec 2024 09:50:44 +0000 (10:50 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 24 Jan 2025 18:49:42 +0000 (10:49 -0800)
It occurred that in the commit 70838938e89c ("ice: Implement driver
functionality to dump serdes equalizer values") the invalid DRATE parameter
for reading has been added. The output of the command:

  $ ethtool -d <ethX>

returns the garbage value in the place where DRATE value should be
stored.

Remove mentioned parameter to prevent return of corrupted data to
userspace.

Fixes: 70838938e89c ("ice: Implement driver functionality to dump serdes equalizer values")
Signed-off-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_adminq_cmd.h
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/intel/ice/ice_ethtool.h

index 01536a382e54e696f7aa7af0ebddc431c51f2ad4..bdee499f991a6d5404992d01b6cdea21b42d404d 100644 (file)
@@ -1498,7 +1498,6 @@ struct ice_aqc_dnl_equa_param {
 #define ICE_AQC_RX_EQU_POST1 (0x12 << ICE_AQC_RX_EQU_SHIFT)
 #define ICE_AQC_RX_EQU_BFLF (0x13 << ICE_AQC_RX_EQU_SHIFT)
 #define ICE_AQC_RX_EQU_BFHF (0x14 << ICE_AQC_RX_EQU_SHIFT)
-#define ICE_AQC_RX_EQU_DRATE (0x15 << ICE_AQC_RX_EQU_SHIFT)
 #define ICE_AQC_RX_EQU_CTLE_GAINHF (0x20 << ICE_AQC_RX_EQU_SHIFT)
 #define ICE_AQC_RX_EQU_CTLE_GAINLF (0x21 << ICE_AQC_RX_EQU_SHIFT)
 #define ICE_AQC_RX_EQU_CTLE_GAINDC (0x22 << ICE_AQC_RX_EQU_SHIFT)
index 3072634bf049c43dbe7a5b88d76a120ef65f2f83..f241493a6ac883531017ef5fe14932b9e24eaa5c 100644 (file)
@@ -710,7 +710,6 @@ static int ice_get_tx_rx_equa(struct ice_hw *hw, u8 serdes_num,
                { ICE_AQC_RX_EQU_POST1, rx, &ptr->rx_equ_post1 },
                { ICE_AQC_RX_EQU_BFLF, rx, &ptr->rx_equ_bflf },
                { ICE_AQC_RX_EQU_BFHF, rx, &ptr->rx_equ_bfhf },
-               { ICE_AQC_RX_EQU_DRATE, rx, &ptr->rx_equ_drate },
                { ICE_AQC_RX_EQU_CTLE_GAINHF, rx, &ptr->rx_equ_ctle_gainhf },
                { ICE_AQC_RX_EQU_CTLE_GAINLF, rx, &ptr->rx_equ_ctle_gainlf },
                { ICE_AQC_RX_EQU_CTLE_GAINDC, rx, &ptr->rx_equ_ctle_gaindc },
index 8f2ad1c172c061331b4399867e62f06a8dcc5dd6..23b2cfbc9684c07cd65033a12397c3f83fc6cd2e 100644 (file)
@@ -15,7 +15,6 @@ struct ice_serdes_equalization_to_ethtool {
        int rx_equ_post1;
        int rx_equ_bflf;
        int rx_equ_bfhf;
-       int rx_equ_drate;
        int rx_equ_ctle_gainhf;
        int rx_equ_ctle_gainlf;
        int rx_equ_ctle_gaindc;