ice: PTP: Clean up timestamp registers correctly
authorKarol Kolacinski <karol.kolacinski@intel.com>
Wed, 26 Jul 2023 18:27:43 +0000 (11:27 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 18 Sep 2023 17:39:10 +0000 (10:39 -0700)
commitbe65a1a33bdee3912daac50aa6c5270ec9c37010
tree2ca4c0d1ef7dde4f3a21824163fc0d32c5608f24
parentbe16574609f14c67efd89d5d8f9f19ab7724bfc9
ice: PTP: Clean up timestamp registers correctly

E822 PHY TS registers should not be written and the only way to clean up
them is to reset QUAD memory.

To ensure that the status bit for the timestamp index is cleared, ensure
that ice_clear_phy_tstamp implementations first read the timestamp out.
Implementations which can write the register continue to do so.

Add a note to indicate this function should only be called on timestamps
which have their valid bit set. Update the dynamic debug messages to
reflect the actual action taken.

Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@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_ptp_hw.c