lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <e479b601-a242-8ef2-ade4-3fe477a196fc@linux.dev> Date: Thu, 11 May 2023 12:12:20 +0100 From: Vadim Fedorenko <vadim.fedorenko@...ux.dev> To: Rahul Rameshbabu <rrameshbabu@...dia.com>, netdev@...r.kernel.org Cc: Saeed Mahameed <saeed@...nel.org>, Gal Pressman <gal@...dia.com>, Tariq Toukan <tariqt@...dia.com>, "David S. Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>, Richard Cochran <richardcochran@...il.com>, Jacob Keller <jacob.e.keller@...el.com>, Jonathan Lemon <jonathan.lemon@...il.com> Subject: Re: [PATCH net-next 9/9] ptp: ocp: Add .getmaxphase ptp_clock_info callback On 10/05/2023 21:53, Rahul Rameshbabu wrote: > Add a function that advertises a maximum offset of zero supported by > ptp_clock_info .adjphase in the OCP null ptp implementation. > > Cc: Richard Cochran <richardcochran@...il.com> > Cc: Jonathan Lemon <jonathan.lemon@...il.com> Neither Jonathan, nor myself are in the actual Cc list. > Signed-off-by: Rahul Rameshbabu <rrameshbabu@...dia.com> > --- > drivers/ptp/ptp_ocp.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c > index ab8cab4d1560..20a974ced8d6 100644 > --- a/drivers/ptp/ptp_ocp.c > +++ b/drivers/ptp/ptp_ocp.c > @@ -1124,6 +1124,12 @@ ptp_ocp_null_adjfine(struct ptp_clock_info *ptp_info, long scaled_ppm) > return -EOPNOTSUPP; > } > > +static s32 > +ptp_ocp_null_getmaxphase(struct ptp_clock_info *ptp_info) > +{ > + return 0; > +} > + > static int > ptp_ocp_null_adjphase(struct ptp_clock_info *ptp_info, s32 phase_ns) > { > @@ -1239,6 +1245,7 @@ static const struct ptp_clock_info ptp_ocp_clock_info = { > .adjtime = ptp_ocp_adjtime, > .adjfine = ptp_ocp_null_adjfine, > .adjphase = ptp_ocp_null_adjphase, > + .getmaxphase = ptp_ocp_null_getmaxphase, > .enable = ptp_ocp_enable, > .verify = ptp_ocp_verify, > .pps = true, Acked-by: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
Powered by blists - more mailing lists