Skip to content

Commit 3ce5cb7

Browse files
etantilovJeff Kirsher
authored andcommitted
ixgbe: add missing configuration for rate select 1
Add RS1 configuration to ixgbe_set_soft_rate_select_speed() Signed-off-by: Emil Tantilov <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 08ed48e commit 3ce5cb7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_common.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4278,4 +4278,23 @@ void ixgbe_set_soft_rate_select_speed(struct ixgbe_hw *hw,
42784278
hw_dbg(hw, "Failed to write Rx Rate Select RS0\n");
42794279
return;
42804280
}
4281+
4282+
/* Set RS1 */
4283+
status = hw->phy.ops.read_i2c_byte(hw, IXGBE_SFF_SFF_8472_ESCB,
4284+
IXGBE_I2C_EEPROM_DEV_ADDR2,
4285+
&eeprom_data);
4286+
if (status) {
4287+
hw_dbg(hw, "Failed to read Rx Rate Select RS1\n");
4288+
return;
4289+
}
4290+
4291+
eeprom_data = (eeprom_data & ~IXGBE_SFF_SOFT_RS_SELECT_MASK) | rs;
4292+
4293+
status = hw->phy.ops.write_i2c_byte(hw, IXGBE_SFF_SFF_8472_ESCB,
4294+
IXGBE_I2C_EEPROM_DEV_ADDR2,
4295+
eeprom_data);
4296+
if (status) {
4297+
hw_dbg(hw, "Failed to write Rx Rate Select RS1\n");
4298+
return;
4299+
}
42814300
}

0 commit comments

Comments
 (0)