Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp833675ybv; Fri, 7 Feb 2020 09:18:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxcEhSdJd39LYDjPFVh1+kRPO47wEcOTdYqLGAQ+fNJaNDuOFfSNPH8Crk7SdG9otQbJc2Q X-Received: by 2002:a05:6830:1049:: with SMTP id b9mr352084otp.100.1581095932104; Fri, 07 Feb 2020 09:18:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581095932; cv=none; d=google.com; s=arc-20160816; b=NxX4qRKadSdufNl69fzPIIsPidxOdSweXfar1FfbiZ2KuFkuvix2pzfskt0XNV7sXv JvSDEd/IwEcADIxqC8JLpLxXnmM3j001rhAPcvOBPWAJOzGIEb7vRROe8v5By1Q9CtQO 8KsrALdtHOyg9zWZWLdc1oWJbbpFcKCXXzEnMqFUjk1shrYw4q2M3AVdOCoWdBXD7ftG R5eSLU3fpafpuP3kg1Ge8ULlbAYMI2PT5pFnGwqu3K+izZHvR8a5OoTVMN7u3U/Pvis3 y5MwnywVE0qZGMRlvm5cx1TZSLY3Syg7ZkdLLonT8oVYRxhJK6pI367ilB8mw2CZjFgl kavw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+3Iqkt4MVXjWZGBV015Jcs9RMmQrhCpmKzo2XOdRy6s=; b=sLycHb9IvVtbFMpAXxVchzbIn/F+VcoOCIdHtSnAkxxKTp/+2peySy6PFqs97RUD+6 JyxPA4OgsDxefQhykOTseSom54mwI6fC31km7Me8yrTANpLr0DD7YtsllDfQCXuRY3GE prW4D5Ku/HrG/AO0OGEaOmm/iJQo1xnCT8eNaufUH8WEDaYnx+/wFtPNzZOSyvlM0hsK RW3TpmF8uleSD54kAnO7SMdbSUbn9fFYGRjMtsqy5Hi6GVhwiI5RzyC6gedwxFeBf3Fb xqSIih+sFfaS1POy56JGehaRD8RcxBC6bRwQUNms6VxSS53BoqZL64KyyPPte3x9z7bT BYUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zEKd6yGS; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24si3936613oic.260.2020.02.07.09.18.39; Fri, 07 Feb 2020 09:18: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=@linaro.org header.s=google header.b=zEKd6yGS; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727130AbgBGRRk (ORCPT + 99 others); Fri, 7 Feb 2020 12:17:40 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:39927 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbgBGRRj (ORCPT ); Fri, 7 Feb 2020 12:17:39 -0500 Received: by mail-lj1-f193.google.com with SMTP id o15so94587ljg.6 for ; Fri, 07 Feb 2020 09:17:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+3Iqkt4MVXjWZGBV015Jcs9RMmQrhCpmKzo2XOdRy6s=; b=zEKd6yGScHa2K0iECeZbhO0XjWI99X5SJjftT/fmqcLVLMycCQJ+7QU2JFU/KEmSym xV3/luzzPlLjt/pCbk9ATk8QEahfIkoGWHKpAMAYcSlIyH9PJrvXsFoiJlAnW+9KFkyL Hm6k8LS5YXlk43jRVp0OCuV8DWva5V5Egqq92jZ2rC4pYON9frYAaPqc1Xnz9pY64MU0 H45p0C579NYh/nxhJ1B2VKLVMaBkdtTyqAR21G06y8664XAn8/lBqTBDFOhBGcKBcFW8 LiadacqrX/7RaTlE8AfMkldn/alfMwoEvcKzbMx2YnZmxsyzrg50ldS7n7RFXP7ZF3HA Aa0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+3Iqkt4MVXjWZGBV015Jcs9RMmQrhCpmKzo2XOdRy6s=; b=C/XiMI+qRVfnn9qWQ61dhqaqEzXeXZNBqwlDqdBlZ+OBM0qSUafjkbPuN5UIK0DF21 HmXg+vbB0EHrP9xMoubWRH2GnlFhi9Yi7mPKwsx8qZs0tPFuFrjUTmnKlDJVkKUlC9Rd UXeno7OYw2MOlRmGZG0nFT32XXhe4NjDSHszUE/vpWh3IkhPlAbI3uHoxGZEJalsLm3y ubU6EQaQ1283PCleKRPmQrxMsnmlHhY+uUj3Av+UU3p5vRzxhcxdSBt2DSn2rFUywCqu CurnsMoQnsvfuA/Ize06zebw34XQt+K//85hM1gMJLEdnTvNF8fsJZS8xiJGTTXAGZfO 5rQw== X-Gm-Message-State: APjAAAVnQZwqeE4HLl/7d0KsygL6GBAgyLeTfpCF+KqPe5Ni8SpP/ANR fbzwYL/2Lhgfnpf2RMOHzThHceDKpacTtTqw68+j8g== X-Received: by 2002:a2e:7d0c:: with SMTP id y12mr155054ljc.39.1581095857258; Fri, 07 Feb 2020 09:17:37 -0800 (PST) MIME-Version: 1.0 References: <20191211214852.26317-1-christopher.s.hall@intel.com> In-Reply-To: <20191211214852.26317-1-christopher.s.hall@intel.com> From: Linus Walleij Date: Fri, 7 Feb 2020 18:17:26 +0100 Message-ID: Subject: Re: [Intel PMC TGPIO Driver 0/5] Add support for Intel PMC Time GPIO Driver with PHC interface changes to support additional H/W Features To: christopher.s.hall@intel.com Cc: netdev , "linux-kernel@vger.kernel.org" , Thomas Gleixner , "H. Peter Anvin" , Ingo Molnar , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , jacob.e.keller@intel.com, Richard Cochran , "David S. Miller" , sean.v.kelley@intel.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 31, 2020 at 7:40 AM wrote: > The TGPIO hardware doesn't implement interrupts. For TGPIO input, the > output edge-timestamp API is re-used to implement a user-space polling > interface. It you modeled it reusing the GPIO subsystem (which I don't know if you can) you would get access to the gpiochip character device /dev/gpiochipN and be able to read timestamped events like the tool in tools/gpio/gpio-event-mon.c does. That said I am still confused about what this driver does or what the purpose is. GPIO pins in or out? Network coming in or going out using PTP? What is the use case? Yours, Linus Walleij