ice: fix dpll input pin phase_adjust value updates
Subsystems (2)
PATCH 1/1 ice: fix dpll input pin phase_adjust value updates
The value of phase_adjust for input pin shall be updated in ice_dpll_pin_state_update(..). Fix by adding proper argument to the firmware query function call - a pin's struct field pointer where the phase_adjust value during driver runtime is stored.
Previously the phase_adjust used to misinform user about actual phase_adjust value. I.e., if phase_adjust was set to a non zero value and if driver was reloaded, the user would see the value equal 0, which is not correct - the actual value is equal to value set before driver reload.
--- drivers/net/ethernet/intel/ice/ice_dpll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_dpll.c +1 -1
@@ -373,7 +373,7 @@ ice_dpll_pin_state_update(struct ice_pf *pf, struct ice_dpll_pin *pin,case ICE_DPLL_PIN_TYPE_INPUT : ret =ice_aq_get_input_pin_cfg (&pf->hw, pin->idx,NULL ,NULL ,NULL , &pin->flags[0 ], - &pin->freq,NULL ); + &pin->freq, &pin->phase_adjust);if (ret) goto err;if (ICE_AQC_GET_CGU_IN_CFG_FLG2_INPUT_EN & pin->flags[0 ]) {
Signature · 1 line
2.38.1
Quoted 17 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Arkadiusz Kubalewski
Sent: Friday, February 9, 2024 4:27 AM
To: [email protected]
Cc: Brady, Alan <[email protected]>; Kubalewski, Arkadiusz <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net] ice: fix dpll input pinphase_adjustvalue updatesThe value of
phase_adjustfor input pin shall be updated inice_dpll_pin_state_update(..). Fix by adding proper argument to the firmware query function call - a pin's struct field pointer where thephase_adjustvalue during driver runtime is stored.Previously the
phase_adjustused to misinform user about actualphase_adjustvalue. I.e., ifphase_adjustwas set to a non zero value and if driver was reloaded, the user would see the value equal 0, which is not correct - the actual value is equal to value set before driver reload.
Quoted 7 lines
Fixes 90e1c90750d7 ("ice: dpll: implement phase related callbacks")Reviewed-by Alan Brady <[email protected]>Signed-off-by Arkadiusz Kubalewski <[email protected]>--- drivers/net/ethernet/intel/ice/ice_dpll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)