Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp113527pxb; Fri, 17 Sep 2021 20:42:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4m/rmiH0N2PkeuggDTCAM4C2OtFAHYC8vNfBr6eDpb3bfcM5vD+D9Hrn9RhK3ACMApmNm X-Received: by 2002:a05:6602:20ce:: with SMTP id 14mr10756726ioz.204.1631936539608; Fri, 17 Sep 2021 20:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631936539; cv=none; d=google.com; s=arc-20160816; b=vwi83nigq+RR2+Jqv3majXYjCLEDPeFp77owkBuihAmk/EUFv/gG0WqVTx+/0Hbdg9 TD3PljUxyc80Z8AgeIN3vp1c/D48/Fv79Twe9X5/q2INXPJ5en7stsbmqQ0b7IHsv6Lu vvniUVtuzMxZsZt967S7DmCMw4itvbt1Qj06/iB70Wa9iTljSqkrcgT5vHpHjPiTPJjJ 8/i7C9g85pzJEYtNCmTrwgogtsn2Iyqn2n7cCUeOREaJSP/WOGPmT8D+ypVcfFGN+E9H wzXuCwfQYQxngUdXYdfAhbDTBG59RBzqtakHseWVLWV0lKeh+4IVp7P8Ereo+NHz3Cv2 ydvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xUufhCPjaNRSqSTmzo6MuqCC9uQCQ1K+hZmvrzAv/18=; b=y6hrCcfhGohHkZrYBcZWIGwHFfeBS07QwyyhgXTv3DiosWXnoriMinh38jh7E58YEa GZlJbPwBzYJScVfxqXWB3LszMw57urPWGcmoITlZSpDXCWcxpGgu9+N8HDxxxnQ7Pwy+ HoNxphKq4cqBUPy/Qu/TQmNaWS/O5FCSQZCr16q2as3LI0joMwryAwE9Zf0I0jrTrI9W kFoodxCQGLb4Gp5VArrm0EqzmgOr68TWpW11qrBiQsIhqj+95bgmgfP2Os1NHRqtyC9T Yq97LQEl2I702lwNWvq3o6CyKDsqJGsW4DHVtJCBARUX7+r8rV2sWVAswCPRZDyIQl4S J7sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=IbGBFwYc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si8360861jat.51.2021.09.17.20.42.07; Fri, 17 Sep 2021 20:42:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=IbGBFwYc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243628AbhIQT7y (ORCPT + 99 others); Fri, 17 Sep 2021 15:59:54 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:46914 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234785AbhIQT7q (ORCPT ); Fri, 17 Sep 2021 15:59:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=xUufhCPjaNRSqSTmzo6MuqCC9uQCQ1K+hZmvrzAv/18=; b=IbGBFwYc8KLLLw4UmW82nynD6F yHwnktQHy7O5jAdXSkjBdvHEKN11Qxv9LQaWdZSHQm3HsWrbQ7QcuRGrI3hG1uxCAXgdT0UDkaH2u TsYDmU4EyfyvdmIlPhz53uycEwO41qaGgWrVcyEDs/iunusK3OMpxh9I/CKsIEjKMOmk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mRJzy-0077OW-Up; Fri, 17 Sep 2021 21:58:14 +0200 Date: Fri, 17 Sep 2021 21:58:14 +0200 From: Andrew Lunn 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 Message-ID: References: <1631889589-26941-1-git-send-email-min.li.xe@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1631889589-26941-1-git-send-email-min.li.xe@renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 17, 2021 at 10:39:48AM -0400, min.li.xe@renesas.com wrote: > From: Min Li > > 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 > --- > 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