ice: dpll: fix initial lock status of dpll
authorArkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Fri, 13 Oct 2023 10:25:10 +0000 (12:25 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 13 Nov 2023 17:48:09 +0000 (09:48 -0800)
commit7a1aba89ac54ccf6cad23a91a34c0ab24b1d7997
tree78f1e76f6474dc2f0dc39316d00fee9bb3aa1a9a
parentc0a2a1b0d631fc460d830f52d06211838874d655
ice: dpll: fix initial lock status of dpll

When dpll device is registered and dpll subsystem performs notify of a
new device, the lock state value provided to dpll subsystem equals 0
which is invalid value for the `enum dpll_lock_status`.
Provide correct value by obtaining it from firmware before registering
the dpll device.

Fixes: d7999f5ea64b ("ice: implement dpll interface to control cgu")
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Tested-by: Sunitha Mekala <sunithax.d.mekala@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