[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240807003032.10300-5-christopher.s.hall@intel.com>
Date: Tue, 6 Aug 2024 17:30:31 -0700
From: christopher.s.hall@...el.com
To: intel-wired-lan@...ts.osuosl.org
Cc: netdev@...r.kernel.org,
vinicius.gomes@...el.com,
david.zage@...el.com,
vinschen@...hat.com,
rodrigo.cadore@...coustics.com,
Christopher S M Hall <christopher.s.hall@...el.com>
Subject: [PATCH iwl-net v1 4/5] igc: Reduce retry count to a more reasonable number
From: Christopher S M Hall <christopher.s.hall@...el.com>
Setting the retry count to 8x is more than sufficient. 100x is unreasonable
and would indicate broken hardware/firmware.
Fixes: a90ec8483732 ("igc: Add support for PTP getcrosststamp()")
Signed-off-by: Christopher S M Hall <christopher.s.hall@...el.com>
---
drivers/net/ethernet/intel/igc/igc_ptp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/igc/igc_ptp.c b/drivers/net/ethernet/intel/igc/igc_ptp.c
index fb885fcaa97c..f770e39650ef 100644
--- a/drivers/net/ethernet/intel/igc/igc_ptp.c
+++ b/drivers/net/ethernet/intel/igc/igc_ptp.c
@@ -1008,8 +1008,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
--
2.34.1
Powered by blists - more mailing lists