]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ptp_ocp: make ptp_ocp driver compatible with PTP_EXTTS_REQUEST2
authorVadim Fedorenko <vadim.fedorenko@linux.dev>
Thu, 18 Sep 2025 13:11:46 +0000 (13:11 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 20 Sep 2025 00:00:06 +0000 (17:00 -0700)
commitd3ca2ef0c915d219e0d958e0bdcc4be6c02c210b
treec37feda6c2c2693a5f4748b8c681e40191a0db2f
parent5fc7fa743dbfcc98c3210ac4a724c88f3e8718d8
ptp_ocp: make ptp_ocp driver compatible with PTP_EXTTS_REQUEST2

Originally ptp_ocp driver was not strictly checking flags for external
timestamper and was always activating rising edge timestamping as it's
the only supported mode. Recent changes to ptp made it incompatible with
PTP_EXTTS_REQUEST2 ioctl. Adjust ptp_clock_info to provide supported
mode and be compatible with new infra.

While at here remove explicit check of periodic output flags from the
driver and provide supported flags for ptp core to check.

Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20250918131146.651468-1-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c