Skip to content

Commit 29adc84

Browse files
committed
ice: clear time_sync_en field for E825-C during reprogramming
JIRA: https://issues.redhat.com/browse/RHEL-104246 Upstream commit(s): commit d261d75 Author: Jacob Keller <jacob.e.keller@intel.com> Date: Mon Jun 23 17:29:57 2025 -0700 ice: clear time_sync_en field for E825-C during reprogramming When programming the Clock Generation Unit for E285-C hardware, we need to clear the time_sync_en bit of the DWORD 9 before we set the frequency. Co-developed-by: Karol Kolacinski <karol.kolacinski@intel.com> Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Petr Oros <poros@redhat.com>
1 parent 73f82dd commit 29adc84

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/net/ethernet/intel/ice/ice_tspll.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,14 @@ static int ice_tspll_cfg_e825c(struct ice_hw *hw, enum ice_tspll_freq clk_freq,
342342
return err;
343343
}
344344

345+
if (dw9.time_sync_en) {
346+
dw9.time_sync_en = 0;
347+
348+
err = ice_write_cgu_reg(hw, ICE_CGU_R9, dw9.val);
349+
if (err)
350+
return err;
351+
}
352+
345353
/* Set the frequency */
346354
dw9.time_ref_freq_sel = clk_freq;
347355

@@ -353,6 +361,7 @@ static int ice_tspll_cfg_e825c(struct ice_hw *hw, enum ice_tspll_freq clk_freq,
353361
dw9.time_ref_en = 1;
354362
dw9.clk_eref0_en = 0;
355363
}
364+
dw9.time_sync_en = 1;
356365
err = ice_write_cgu_reg(hw, ICE_CGU_R9, dw9.val);
357366
if (err)
358367
return err;

0 commit comments

Comments
 (0)