Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4250416ybv; Tue, 25 Feb 2020 16:21:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxc7eQgOIrcaAl8z0KMdJOUv21UmMvSyuleGfTJNMmVLSauTGofiP/qpjYrqCzqI/CWQ0eu X-Received: by 2002:a05:6830:1198:: with SMTP id u24mr889111otq.215.1582676473033; Tue, 25 Feb 2020 16:21:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582676473; cv=none; d=google.com; s=arc-20160816; b=b/eaf+2kYzYWZswXTdI7P3dM3G8EqmEt4LgmmN/zGd1UTGibr/sWt0kzn89lSvFVKe Rv3GJMjfYLPXj7p0U9HAYib03UNGOJNdJxCbd9X7vD9av3QPeE/Pm36+Lcmt8xt1cywu bJWmJEsucME3UpMUJdmVKPc6nkOcNpJxpzpjJbPhaWGB5s8nAeX9FsnsokHVD2kpj9Pt u/evhzwIqSt+Yt3IKWy5iuD9pJvJ7nE0rpMzbdG4+U4fXQJU9kQweomMBRnMQcHSZSrA WoSdK4yXnCeLMZIZggGW4rRxw7iEVpFKNa2xnJzUVBwEw2jtNrZH4Bmu0JUP6l49Orpb sI/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=9dxldFlNNad0YOGYTOGagwXMM+C71GmwYRa5KQ3TPQg=; b=xT07SV1KPkaEOTT8Uw6QcHInAbD1Yrw6+V0wrfyTGFwTdkMl+acnphH+H3w6S2vDuB /3Zcl3P9VOxymjJ1LFw1b2gVCtdP/erYjrMCvnZN5bIw1SbnsSP8XmTjOM/bBVpQH7bp 7/enO3/9xk/hdkfbzQ0Gu+s8jrVkmHBIocnj0UTZ2l5Kjiha9RU0gFaHs/6h0eI39hqj rxQqS72l/BKpxJOuVGGxG2ed+ngIivVit1jytYfcRWO6MF/zVxbvK9s3CIfiL3Be5TIP gldXh8RzVFxE0LWM7lFHjt+oqjUaZu750C5Wdp6syD7Cj/im/hHRSUW6xFcFqUP3vmQR UGzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9si249243otb.49.2020.02.25.16.21.00; Tue, 25 Feb 2020 16:21:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729657AbgBZAUj (ORCPT + 99 others); Tue, 25 Feb 2020 19:20:39 -0500 Received: from mga06.intel.com ([134.134.136.31]:58486 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728989AbgBZAUi (ORCPT ); Tue, 25 Feb 2020 19:20:38 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2020 16:20:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,486,1574150400"; d="scan'208";a="237850102" Received: from wtczc53028gn.jf.intel.com (HELO skl-build) ([10.54.87.17]) by orsmga003.jf.intel.com with ESMTP; 25 Feb 2020 16:20:37 -0800 Date: Tue, 25 Feb 2020 16:20:26 -0800 From: "Christopher S. Hall" To: Richard Cochran Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, mingo@redhat.com, x86@kernel.org, jacob.e.keller@intel.com, davem@davemloft.net, sean.v.kelley@intel.com Subject: Re: [Intel PMC TGPIO Driver 2/5] drivers/ptp: Add PEROUT2 ioctl frequency adjustment interface Message-ID: <20200226002026.GB32079@skl-build> References: <20191211214852.26317-1-christopher.s.hall@intel.com> <20191211214852.26317-3-christopher.s.hall@intel.com> <20200203021429.GB3516@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200203021429.GB3516@localhost> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Richard, On Sun, Feb 02, 2020 at 06:14:29PM -0800, Richard Cochran wrote: > On Wed, Dec 11, 2019 at 01:48:49PM -0800, christopher.s.hall@intel.com wrote: > > diff --git a/include/linux/ptp_clock_kernel.h b/include/linux/ptp_clock_kernel.h > > + int (*counttstamp)(struct ptp_clock_info *ptp, > > + struct ptp_event_count_tstamp *count); > > KernelDoc missing. > As tglx said, it is hard to guess what this will be used for. I would > appreciate a fuller explanation of the new callback in the commit log > message. Yes, to both of these above. More incremental patches as you point out below also helps here. I have replied to tglx and you in another thread. > In general, please introduce a specific new API with an example of how > it is used. In this series you have three new APIs, > > [Intel PMC TGPIO Driver 2/5] drivers/ptp: Add PEROUT2 ioctl frequency adjustment interface > [Intel PMC TGPIO Driver 3/5] drivers/ptp: Add user-space input polling interface > [Intel PMC TGPIO Driver 4/5] x86/tsc: Add TSC support functions to support ART driven Time-Aware GPIO > > and then a largish driver using them all. > > [Intel PMC TGPIO Driver 5/5] drivers/ptp: Add PMC Time-Aware GPIO Driver > > May I suggest an ordering more like: > > [1/5] x86/tsc: Add TSC support functions to support ART... (with forward explanation of the use case) > [2/5] drivers/ptp: Add PMC Time-Aware GPIO Driver (without new bits) > [3/5] drivers/ptp: Add Enhanced handling of reserve fields (okay as is) > [4/5] drivers/ptp: Add PEROUT2 ioctl frequency adjustment interface > [5/5] implement ^^^ in the driver > [6/5] drivers/ptp: Add user-space input polling interface > [7/5] implement ^^^ in the driver This makes sense. Thanks for the detail here. > > @@ -164,10 +179,14 @@ struct ptp_pin_desc { > > * PTP_EXTTS_REQUEST and PTP_PEROUT_REQUEST ioctls. > > */ > > unsigned int chan; > > + /* > > + * Per pin capability flag > > + */ > > + unsigned int flags; > > Please use 'capabilities' instead of 'flags'. Yes. Makes sense. > Thanks, > Richard Thanks, Christopher