[PATCH net-next v3 0/2] ptp: add control over HW timestamp latch point

Arkadiusz Kubalewski posted 2 patches 2 weeks, 4 days ago
Documentation/ABI/testing/sysfs-ptp         | 12 +++++
drivers/net/ethernet/intel/ice/ice_ptp.c    | 44 +++++++++++++++
drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 60 +++++++++++++++++++++
drivers/net/ethernet/intel/ice/ice_ptp_hw.h |  2 +
drivers/ptp/ptp_sysfs.c                     | 44 +++++++++++++++
include/linux/ptp_clock_kernel.h            | 12 +++++
include/uapi/linux/ptp_clock.h              | 18 +++++++
7 files changed, 192 insertions(+)
[PATCH net-next v3 0/2] ptp: add control over HW timestamp latch point
Posted by Arkadiusz Kubalewski 2 weeks, 4 days ago
HW support of ptp/timesync solutions in network PHY chips can be
achieved with two different approaches, the timestamp maybe latched
either in the beginning or after the Start of Frame Delimiter (SFD) [1].

Allow ptp device drivers to provide user with control over the timestamp
latch point.

[1] https://www.ieee802.org/3/cx/public/april20/tse_3cx_01_0420.pdf

v3:
- move new enum ptp_ts_point to uapi ptp_clock.h and add NONE value to
  indicate that the timestamp latch point was not provided by the HW,
  allow further changes to ethtool netlink interface exstensions.

Arkadiusz Kubalewski (2):
  ptp: add control over HW timestamp latch point
  ice: ptp: add control over HW timestamp latch point

 Documentation/ABI/testing/sysfs-ptp         | 12 +++++
 drivers/net/ethernet/intel/ice/ice_ptp.c    | 44 +++++++++++++++
 drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 60 +++++++++++++++++++++
 drivers/net/ethernet/intel/ice/ice_ptp_hw.h |  2 +
 drivers/ptp/ptp_sysfs.c                     | 44 +++++++++++++++
 include/linux/ptp_clock_kernel.h            | 12 +++++
 include/uapi/linux/ptp_clock.h              | 18 +++++++
 7 files changed, 192 insertions(+)

base-commit: 0452a2d8b8b98a5b1a9139c1a9ed98bccee356cc
-- 
2.38.1