ice: fix dpll input pin phase_adjust value updates
authorArkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Thu, 8 Feb 2024 22:56:31 +0000 (23:56 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 20 Feb 2024 18:23:52 +0000 (10:23 -0800)
commit3b14430c65b4f510b2a310ca4f18ed6ca7184b00
tree67ecef083f0f5a8042bc0e7d142a84f7f4badb01
parente8335ef57c6816d81b24173ba88cc9b3f043687f
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.

Fixes: 90e1c90750d7 ("ice: dpll: implement phase related callbacks")
Reviewed-by: Alan Brady <alan.brady@intel.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_dpll.c