Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3240518ybl; Sun, 2 Feb 2020 18:37:52 -0800 (PST) X-Google-Smtp-Source: APXvYqywiPqyzfjQNUNy60U6kBAO8n/qpTMXwob0EdJ/KU9X82QfGSRfbUP6r+/LobntPXHkhi3K X-Received: by 2002:aca:d483:: with SMTP id l125mr12937031oig.124.1580697472276; Sun, 02 Feb 2020 18:37:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580697472; cv=none; d=google.com; s=arc-20160816; b=zaNftMeZ3LPJByBPcXMzJ2UspIot/tI/kMTPioqMzTiH6EN5uG2AVnNWXgizhY1R02 3TtAYYUapdrGzR9opOz4ojaaE9Ns3xz1eOFzYO/7+6oAZj8BZkiD2W92kPmE2BJIQLf4 MnyRLsoVCIhqurzBhqIyTl0+OR6zADAusu6CJe9HtLdQXXw/X7L1uXzZVm4+AFkMUXSW HxLbJhQwt5LjXhft5F0t8q6wJWtacyhnAmrVNl5zozsU7fIwynG01KcXdGV0RAm0EqFY A6n2SNiYnzW7EaIznKe33xL3o5M+7AgS1BSCYU8bGxJH2fmhgwfObOfNXRawSCGsppJ6 QbTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/Lnmgxusi6/x//le30pI2bUgaub9a+/+5+73CaIB9g8=; b=G7Ng2rlLjQvs1c6zRdrpSq8hY0dy4Yvmcv1APl0hVWkl1ONuyJy24NZuu641nO9RVT G+qFwY54E0AqL9tcJsaz1Pq3DSXivOhMv9xq0tAFVAkaLcll+NTB/X68GO2ubNKBoaWa Gr+gKpbf045kxrxNotKa1DyZeuLVU/jx+RHmtGozeLmiVWMlku+Go/M+V/2Tvaisxlr4 rw9PbbruZkia5xaiqbqPcgvbNgmGHJRUFcK6mgr8g9EevVFWlKrlgb5dqvQ/GH9H31rH sycELH5XttDEcf+fbUF8bAuTbRNw6LNlHnVG/H5M28pV0MOSmLMfJ/LsQb61ivFpRTHq m7Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LKIyz7Km; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si8786365otp.108.2020.02.02.18.37.39; Sun, 02 Feb 2020 18:37:52 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LKIyz7Km; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727302AbgBCC2z (ORCPT + 99 others); Sun, 2 Feb 2020 21:28:55 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41191 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbgBCC2y (ORCPT ); Sun, 2 Feb 2020 21:28:54 -0500 Received: by mail-pl1-f193.google.com with SMTP id t14so5216674plr.8; Sun, 02 Feb 2020 18:28:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/Lnmgxusi6/x//le30pI2bUgaub9a+/+5+73CaIB9g8=; b=LKIyz7KmBtrW9kHsHZQPL4N+oaIvvgh5PCAqNNQEfXZWk2LxMAvF06k06ZLCbNcKth hrX+If4cQEyWurJA6taUdMlAf7lLJIOqxFzhh/hTh+lsh2MRZtmxTC5ZPppwwycMtWti 2emPrTqzKGoRRM5M+enOppuYMNUd3NM/mKrreNojZ2x4TCRAi8nlb3G3SUU7xXNYHzj7 lqq+DARBcrrG+uBQ0dE3DMUzaCqkzsl105twCF+K4vFONwZD3sEYwkfwl3o2WgaaqQRR kLB3HTFG8zpK6zz5jGstXjxsmtJN/tLlWvQlrNbOxkzJBTFxH1s1KfaqiKg8mBB2SVx2 JM0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/Lnmgxusi6/x//le30pI2bUgaub9a+/+5+73CaIB9g8=; b=RJAK40/5fE61oLA4KpPDPHCh0rbgBtv4eu7q/RKSS8ukJQZ0vc8YGzQK+z5FUGTcak jmtuzIACwdR/nkq5slBOI2i78AH74oGpB7rzrIAxll+jblxwwjoFsFxn3sPM/3CnEjRi RS8ue26IIV6F0W764By4ai1p0xbe0ZdHwQMlFSDUpBf5M+/iinOoluaK4vAh4ABL7wfW eFOCbsjBj/2IPKbR1JzzZ97u0IBIHxkU1yKAOjF3Hwq2e2pUxSuwh5TTOJtjq/5+KCZ4 0R0VSVFq1DHTvlVV8pr35VrTRW4BeISeKBlxuQqADgFptfZXYXu7kJhpApq5GOR9JtzS 8WBQ== X-Gm-Message-State: APjAAAVlJSf17lcNy99BWGS6tAFImNKUSSqVBuKVBy5M68vbS1WGUuTM 7Vh+LYBpTkX08gF7NqPeD0CnVL9w X-Received: by 2002:a17:90a:3268:: with SMTP id k95mr27003561pjb.48.1580696934072; Sun, 02 Feb 2020 18:28:54 -0800 (PST) Received: from localhost (c-73-241-114-122.hsd1.ca.comcast.net. [73.241.114.122]) by smtp.gmail.com with ESMTPSA id cx18sm17748292pjb.26.2020.02.02.18.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Feb 2020 18:28:53 -0800 (PST) Date: Sun, 2 Feb 2020 18:28:50 -0800 From: Richard Cochran To: christopher.s.hall@intel.com 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 3/5] drivers/ptp: Add user-space input polling interface Message-ID: <20200203022850.GC3516@localhost> References: <20191211214852.26317-1-christopher.s.hall@intel.com> <20191211214852.26317-4-christopher.s.hall@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191211214852.26317-4-christopher.s.hall@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 11, 2019 at 01:48:50PM -0800, christopher.s.hall@intel.com wrote: > From: Christopher Hall > > The Intel PMC Time-Aware GPIO controller doesn't implement interrupts to > notify software that an input event has occurred. To solve this problem, > implement a user-space polling interface allowing the application to check > for input events. The API returns an event count and time. This interface > (EVENT_COUNT_TSTAMP2) is *reused* from the output frequency adjustment API. > The event count delta indicates that one or more events have occurred and > how many events may have been missed. So I think this interface is truly horrible. The ptp_pin_desc describes a pin's configuration WRT the PTP_PF_xxx and the specific EXTTS/PEROUT_REQUEST channel. I don't know exactly what you are trying to accomplish, but there has got to be a better way. Re-using the ptp_pin_desc for a polling interface is surely not the way forward. Thanks, Richard