File tree 1 file changed +9
-9
lines changed
drivers/net/ethernet/intel/igc
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1011,16 +1011,16 @@ static int igc_phc_get_syncdevicetime(ktime_t *device,
1011
1011
int err , count = 100 ;
1012
1012
ktime_t t1 , t2_curr ;
1013
1013
1014
- /* Get a snapshot of system clocks to use as historic value. */
1015
- ktime_get_snapshot (& adapter -> snapshot );
1016
-
1014
+ /* Doing this in a loop because in the event of a
1015
+ * badly timed (ha!) system clock adjustment, we may
1016
+ * get PTM errors from the PCI root, but these errors
1017
+ * are transitory. Repeating the process returns valid
1018
+ * data eventually.
1019
+ */
1017
1020
do {
1018
- /* Doing this in a loop because in the event of a
1019
- * badly timed (ha!) system clock adjustment, we may
1020
- * get PTM errors from the PCI root, but these errors
1021
- * are transitory. Repeating the process returns valid
1022
- * data eventually.
1023
- */
1021
+ /* Get a snapshot of system clocks to use as historic value. */
1022
+ ktime_get_snapshot (& adapter -> snapshot );
1023
+
1024
1024
igc_ptm_trigger (hw );
1025
1025
1026
1026
err = readx_poll_timeout (rd32 , IGC_PTM_STAT , stat ,
You can’t perform that action at this time.
0 commit comments