diff options
| author | Karol Kolacinski <[email protected]> | 2025-06-24 00:30:03 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-06-26 15:37:00 +0000 |
| commit | e980aa68520963f07364c98eac9f4426f968526c (patch) | |
| tree | 1fe44866ef66b9a8aa380a7aef4b34bd6256d894 /drivers/net/ethernet/intel/ice/ice_ptp.c | |
| parent | ice: fall back to TCXO on TSPLL lock fail (diff) | |
| download | kernel-e980aa68520963f07364c98eac9f4426f968526c.tar.gz kernel-e980aa68520963f07364c98eac9f4426f968526c.zip | |
ice: move TSPLL init calls to ice_ptp.c
Initialize TSPLL after initializing PHC in ice_ptp.c instead of calling
for each product in PHC init in ice_ptp_hw.c.
Reviewed-by: Michal Kubiak <[email protected]>
Reviewed-by: Milena Olech <[email protected]>
Signed-off-by: Karol Kolacinski <[email protected]>
Tested-by: Rinitha S <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ptp.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_ptp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c index b8cf8d64aaaa..e7005d757477 100644 --- a/drivers/net/ethernet/intel/ice/ice_ptp.c +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c @@ -2892,6 +2892,10 @@ static int ice_ptp_rebuild_owner(struct ice_pf *pf) if (err) return err; + err = ice_tspll_init(hw); + if (err) + return err; + /* Acquire the global hardware lock */ if (!ice_ptp_lock(hw)) { err = -EBUSY; @@ -3059,6 +3063,13 @@ static int ice_ptp_init_owner(struct ice_pf *pf) return err; } + err = ice_tspll_init(hw); + if (err) { + dev_err(ice_pf_to_dev(pf), "Failed to initialize CGU, status %d\n", + err); + return err; + } + /* Acquire the global hardware lock */ if (!ice_ptp_lock(hw)) { err = -EBUSY; |
