Skip to content

Commit

Permalink
igc: Reduce retry count to a more reasonable number
Browse files Browse the repository at this point in the history
Setting the retry count to 8x is more than sufficient. 100x is unreasonable
 and would indicate broken hardware/firmware.

Fixes: a90ec84 ("igc: Add support for PTP getcrosststamp()")
Signed-off-by: Christopher S M Hall <[email protected]>
  • Loading branch information
christopher-s-hall authored and Kishor408 committed Sep 25, 2024
1 parent ff0b0c5 commit ccbe05e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/intel/igc/igc_ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,8 +1076,8 @@ static int igc_phc_get_syncdevicetime(ktime_t *device,
u32 stat, t2_curr_h, t2_curr_l;
struct igc_adapter *adapter = ctx;
struct igc_hw *hw = &adapter->hw;
int err, count = 100;
ktime_t t1, t2_curr;
int err, count = 8;

/* Doing this in a loop because in the event of a
* badly timed (ha!) system clock adjustment, we may
Expand Down

0 comments on commit ccbe05e

Please sign in to comment.