Re: [PATCH v5 net-next 08/15] ptp: netc: add debugfs support to loop back pulse signal

From: Andrew Lunn
Date: Mon Aug 25 2025 - 08:38:49 EST


On Mon, Aug 25, 2025 at 12:15:25PM +0800, Wei Fang wrote:
> The NETC Timer supports to loop back the output pulse signal of Fiper-n
> into Trigger-n input, so that we can leverage this feature to validate
> some other features without external hardware support.

This seems like it should be a common feature which more PTP clocks
will support? Did you search around and see if there are other devices
with this?

Ah:

ptp_qoriq_debugfs.c: if (!debugfs_create_file_unsafe("fiper1-loopback", 0600, root,
ptp_qoriq_debugfs.c: if (!debugfs_create_file_unsafe("fiper2-loopback", 0600, root,

Rather than hiding this in debugfs where each vendor will implement it
differently, i'm just think it might make sense to have an official
kernel API for it.

Andrew