netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/2] ptp: add control over HW timestamp latch point
@ 2024-11-06  1:07 Arkadiusz Kubalewski
  2024-11-06  1:07 ` [PATCH net-next v3 1/2] " Arkadiusz Kubalewski
  2024-11-06  1:07 ` [PATCH net-next v3 2/2] ice: " Arkadiusz Kubalewski
  0 siblings, 2 replies; 8+ messages in thread
From: Arkadiusz Kubalewski @ 2024-11-06  1:07 UTC (permalink / raw)
  To: netdev, linux-kernel, intel-wired-lan
  Cc: anthony.l.nguyen, przemyslaw.kitszel, davem, edumazet, kuba,
	pabeni, richardcochran, Arkadiusz Kubalewski

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-11-07 17:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06  1:07 [PATCH net-next v3 0/2] ptp: add control over HW timestamp latch point Arkadiusz Kubalewski
2024-11-06  1:07 ` [PATCH net-next v3 1/2] " Arkadiusz Kubalewski
2024-11-06  2:04   ` Jakub Kicinski
2024-11-07  9:01     ` Kubalewski, Arkadiusz
2024-11-07 17:54       ` Richard Cochran
2024-11-06 17:45   ` Andrew Lunn
2024-11-07  9:14     ` [Intel-wired-lan] " Kubalewski, Arkadiusz
2024-11-06  1:07 ` [PATCH net-next v3 2/2] ice: " Arkadiusz Kubalewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).