]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 May 2022 08:26:48 +0000 (10:26 +0200)
commit3cbcd3222c7b583c93fdcefc36585455f4d2f31f
tree00b159b6a50416c980ad91a3923a48aca45f5785
parentebcd26aefa1d2b98a889ea4fe0ff9f87416be878
ice: fix PTP stale Tx timestamps cleanup

[ Upstream commit 0e5aee40cb120edcd260a93d727545c806ac01c3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/ice/ice_ptp.c