Skip to content

Commit 3f0d646

Browse files
anguy11Jeff Kirsher
authored andcommitted
ixgbe: Reduce I2C retry count on X550 devices
A retry count of 10 is likely to run into problems on X550 devices that have to detect and reset unresponsive CS4227 devices. So, reduce the I2C retry count to 3 for X550 and above. This should avoid any possible regressions in existing devices. Signed-off-by: Tony Nguyen <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 910c9c0 commit 3f0d646

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ s32 ixgbe_read_i2c_combined_generic_int(struct ixgbe_hw *hw, u8 addr,
113113
u16 reg, u16 *val, bool lock)
114114
{
115115
u32 swfw_mask = hw->phy.phy_semaphore_mask;
116-
int max_retry = 10;
116+
int max_retry = 3;
117117
int retry = 0;
118118
u8 csum_byte;
119119
u8 high_bits;
@@ -1755,6 +1755,8 @@ static s32 ixgbe_read_i2c_byte_generic_int(struct ixgbe_hw *hw, u8 byte_offset,
17551755
u32 swfw_mask = hw->phy.phy_semaphore_mask;
17561756
bool nack = true;
17571757

1758+
if (hw->mac.type >= ixgbe_mac_X550)
1759+
max_retry = 3;
17581760
if (ixgbe_is_sfp_probe(hw, byte_offset, dev_addr))
17591761
max_retry = IXGBE_SFP_DETECT_RETRIES;
17601762

0 commit comments

Comments
 (0)