]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e5aee40cb120edcd260a93d727545c806ac01c3
treebcab0a2dc98e1722fdb5c3a866e6033bbc24b601
parentd2c067bbe81ac4ec0f9e67e365de569abd7c4a12
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: fd28ad3fe698 ("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