[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210614181218.GA7788@localhost>
Date: Mon, 14 Jun 2021 11:12:20 -0700
From: Richard Cochran <richardcochran@...il.com>
To: Jacob Keller <jacob.e.keller@...el.com>
Cc: Jakub Kicinski <kuba@...nel.org>,
Tony Nguyen <anthony.l.nguyen@...el.com>, davem@...emloft.net,
netdev@...r.kernel.org, sassmann@...hat.com,
Tony Brelinski <tonyx.brelinski@...el.com>
Subject: Re: [PATCH net-next 5/8] ice: register 1588 PTP clock device object
for E810 devices
On Mon, Jun 14, 2021 at 09:43:17AM -0700, Jacob Keller wrote:
> > Since dialed_freq is updated regardless of return value of .adjfine
> > the driver has no clear way to reject bad scaled_ppm>
>
> I'm not sure. +Richard?
The driver advertises "max_adj". The PHC layer checks user space inputs:
ptp_clock.c line 140:
} else if (tx->modes & ADJ_FREQUENCY) {
s32 ppb = scaled_ppm_to_ppb(tx->freq);
if (ppb > ops->max_adj || ppb < -ops->max_adj)
return -ERANGE;
So, if the max_adj is correct for the driver/HW, then all is well.
Thanks,
Richard
Powered by blists - more mailing lists