ice: fix dpll periodic work data updates on PF reset
authorArkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Fri, 9 Feb 2024 21:24:31 +0000 (22:24 +0100)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 20 Feb 2024 18:25:35 +0000 (10:25 -0800)
commit9a8385fe14bcb250a3889e744dc54e9c411d8400
treec590b46350bdde0ae7a9497a8d3bfdfe6bc7e5b0
parentfc7fd1a10a9d2d38378b42e9a508da4c68018453
ice: fix dpll periodic work data updates on PF reset

Do not allow dpll periodic work function to acquire data from firmware
if PF reset is in progress. Acquiring data will cause dmesg errors as the
firmware cannot respond or process the request properly during the reset
time.

Test by looping execution of below step until dmesg error appears:
- perform PF reset
$ echo 1 > /sys/class/net/<ice PF>/device/reset

Fixes: d7999f5ea64b ("ice: implement dpll interface to control cgu")
Reviewed-by: Igor Bagnucki <igor.bagnucki@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