ice: fix PTP stale Tx timestamps cleanup
authorMichal Michalik <michal.michalik@intel.com>
Wed, 20 Apr 2022 12:23:02 +0000 (14:23 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 6 May 2022 17:09:24 +0000 (10:09 -0700)
commita11b6c1a383ff092f432e040c20e032503785d47
treebcab0a2dc98e1722fdb5c3a866e6033bbc24b601
parent6096dae926a22e2892ef9169f582589c16d39639
ice: fix PTP stale Tx timestamps cleanup

Read stale PTP Tx timestamps from PHY on cleanup.

After running out of Tx timestamps request handlers, hardware (HW) stops
reporting finished requests. Function ice_ptp_tx_tstamp_cleanup() used
to only clean up stale handlers in driver and was leaving the hardware
registers not read. Not reading stale PTP Tx timestamps prevents next
interrupts from arriving and makes timestamping unusable.

Fixes: ea9b847cda64 ("ice: enable transmit timestamps for E810 devices")
Signed-off-by: Michal Michalik <michal.michalik@intel.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ptp.c