From: Andrew Lunn <andrew@lunn.ch>
To: min.li.xe@renesas.com
Cc: richardcochran@gmail.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v2 1/2] ptp: idt82p33: optimize idt82p33_adjtime
Date: Fri, 17 Sep 2021 21:58:14 +0200 [thread overview]
Message-ID: <YUTzVmf0W8/RjyK0@lunn.ch> (raw)
In-Reply-To: <1631889589-26941-1-git-send-email-min.li.xe@renesas.com>
On Fri, Sep 17, 2021 at 10:39:48AM -0400, min.li.xe@renesas.com wrote:
> From: Min Li <min.li.xe@renesas.com>
>
> The current adjtime implementation is read-modify-write and immediately
> triggered, which is not accurate due to slow i2c bus access. Therefore,
> we will use internally generated 1 PPS pulse as trigger, which will
> improve adjtime accuracy significantly. On the other hand, the new trigger
> will not change TOD immediately but delay it to the next 1 PPS pulse.
>
> Signed-off-by: Min Li <min.li.xe@renesas.com>
> ---
> drivers/ptp/ptp_idt82p33.c | 221 ++++++++++++++++++++++++++++++---------------
> drivers/ptp/ptp_idt82p33.h | 28 +++---
> 2 files changed, 165 insertions(+), 84 deletions(-)
>
> diff --git a/drivers/ptp/ptp_idt82p33.c b/drivers/ptp/ptp_idt82p33.c
> index c1c959f..abe628c 100644
> --- a/drivers/ptp/ptp_idt82p33.c
> +++ b/drivers/ptp/ptp_idt82p33.c
> @@ -24,15 +24,10 @@ MODULE_LICENSE("GPL");
> MODULE_FIRMWARE(FW_FILENAME);
>
> /* Module Parameters */
> -static u32 sync_tod_timeout = SYNC_TOD_TIMEOUT_SEC;
> -module_param(sync_tod_timeout, uint, 0);
> -MODULE_PARM_DESC(sync_tod_timeout,
> -"duration in second to keep SYNC_TOD on (set to 0 to keep it always on)");
> -
Despite module parameters not being liked, they are probably also
considered ABI. So you probably cannot remove it.
Andrew
next prev parent reply other threads:[~2021-09-17 19:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-17 14:39 min.li.xe
2021-09-17 14:39 ` [PATCH net v2 2/2] ptp: idt82p33: implement double dco time correction min.li.xe
2021-09-17 19:54 ` Jakub Kicinski
2021-09-17 20:19 ` Min Li
2021-09-17 21:06 ` Jakub Kicinski
2021-09-20 14:08 ` Min Li
2021-09-20 19:14 ` Jakub Kicinski
2021-09-20 15:13 ` Min Li
2021-09-20 16:49 ` Andrew Lunn
2021-09-17 19:58 ` Andrew Lunn [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-09-17 20:50 [PATCH net v2 1/2] ptp: idt82p33: optimize idt82p33_adjtime min.li.xe
2021-06-29 18:29 min.li.xe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YUTzVmf0W8/RjyK0@lunn.ch \
--to=andrew@lunn.ch \
--cc=linux-kernel@vger.kernel.org \
--cc=min.li.xe@renesas.com \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®