]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
testptp: add option to enable external timestamping edges
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 19 Jun 2025 13:53:42 +0000 (15:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jun 2025 12:32:14 +0000 (13:32 +0100)
commit27390db9592d828b6d3c2764305a5037a9aa969d
tree183412444c1daf4b4bfb126c6c9bb014339105fa
parent5e95c0a3a55aea490420bd6994805edb050cc86b
testptp: add option to enable external timestamping edges

Some drivers (e.g. ice) don't enable any edges by default when external
timestamping is requested by the PTP_EXTTS_REQUEST ioctl, which makes
testptp -e unusable for testing hardware supported by these drivers.

Add -E option to specify if the rising, falling, or both edges should
be enabled by the ioctl.

Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/ptp/testptp.c