[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z4n6a7JB2HmSbqWn@hoboy.vegasvil.org>
Date: Thu, 16 Jan 2025 22:36:27 -0800
From: Richard Cochran <richardcochran@...il.com>
To: Jacob Keller <jacob.e.keller@...el.com>
Cc: Jiawen Wu <jiawenwu@...stnetic.com>, andrew+netdev@...n.ch,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, linux@...linux.org.uk, horms@...nel.org,
netdev@...r.kernel.org, vadim.fedorenko@...ux.dev,
mengyuanlou@...-swift.com
Subject: Re: [PATCH net-next v4 4/4] net: ngbe: Add support for 1PPS and TOD
On Thu, Jan 16, 2025 at 09:23:10AM -0800, Jacob Keller wrote:
> The sysfs interface doesn't expose the full support for the
> PTP_PEROUT_REQUEST ioctl.
>
> It only supports setting the period and the start time. The other
> features were added later, and the sysfs interface was never extended.
Right.
> To use the full support, you need to issue the PTP_PEROUT_REQUEST2
> ioctl, for example from a C program. Something like the following might
> help you on the right path:
Actually, there is no need to write a program, because you can use
linux/tools/testing/selftests/ptp/testptp.c
It has command line options to set the pulse width and phase:
" -p val enable output with a period of 'val' nanoseconds\n"
" -H val set output phase to 'val' nanoseconds (requires -p)\n"
" -w val set output pulse width to 'val' nanoseconds (requires -p)\n"
Thanks,
Richard
Powered by blists - more mailing lists