Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5122175ybx; Sun, 10 Nov 2019 07:22:22 -0800 (PST) X-Google-Smtp-Source: APXvYqw7dMSd3qO4PXjrdQPT1L3PMf82nCaUc7MVBdxqZYHqNANih7KpkLK8u/ljzkOthRIObglE X-Received: by 2002:a17:906:7e08:: with SMTP id e8mr18661056ejr.199.1573399341950; Sun, 10 Nov 2019 07:22:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573399341; cv=none; d=google.com; s=arc-20160816; b=xf8OxOdPyCH2OdKP4u4pBQQruFRawHnY22Hb48twOLfLYRxlns42eJjfiL/gAwSUMN trHaXw46xKFfqnInhqnXVf5nSAsztrNcbIkq7bYiNDLwgTd9ia/VI2dh38HaZ8Jgu/HH pEnEGwPPfzZ5TJJ1TWOUZqqk2QafHkBhaVFkrHaIV9poPUCsSWP+R+rxXYkf+iz7VIr6 YEzdiUYECgfLGmXRxQdoDZ2PmDWzj3qW4KCQdww5qsFXqTf5EN8rAbCkhTGP5Qsv8Bqe xpjdUYgwOQz5lqW6Q9UcSiZ8jVahtOWgiAS/rrN3AO9xA/hLRQMvVUPtJI1i4jfMQ2n3 N6Pw== 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=e3b1KNrJoF7hiZ9f5QB0CwtZdtDXpaOtcJztE2+Em/I=; b=el+ETw5EifNkyLwkgpiQReDM+2gkzvG/o/VGBjlGvb4tXjaZlkJAnvEBt+dm16qIkf 2vIkrQF7wMTCYabh0IwD83IBLlAB54eBu1OtU3YEW1l+GqJg4ZC0OQQnzjwyZ9o+hzYT ivRELrLVBvsdjpKBXpUfmtzSCpvTujYbmyXyloIcf6hNn3dXiZ7uCoflqE8xXNEdcufZ q2Psq46AiQ+DnpQt3n+XiMH1+g8JLG2e7IKwRI7DbR6xk4euEEa1MmWcDRgxyONXyhca I5A+0xsfa0xTQy7bxxJV4zgQFSu5ZvjdFdHmjaSJm6P6bsf8j8ZLFXZlHHhHO441lLwv nvUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="GS5A/gJq"; 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 q2si1308828ejj.109.2019.11.10.07.21.58; Sun, 10 Nov 2019 07:22:21 -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="GS5A/gJq"; 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 S1726917AbfKJPOO (ORCPT + 99 others); Sun, 10 Nov 2019 10:14:14 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:35943 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbfKJPON (ORCPT ); Sun, 10 Nov 2019 10:14:13 -0500 Received: by mail-oi1-f193.google.com with SMTP id j7so9397670oib.3; Sun, 10 Nov 2019 07:14:13 -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=e3b1KNrJoF7hiZ9f5QB0CwtZdtDXpaOtcJztE2+Em/I=; b=GS5A/gJq9PfTy+ldfS/E8RU4kDfHgdBc6VXLWnBC5R5MW9CS3yRP13Sv9CDsJJoBQw 0X56lE7y79QDjB9GZp0Whvx4PwMnWdB7VmvowneLpBuCf3SOuyMe5p1RlfH8J8bRwTTK m0NB1mlyPC7yPJWHowUvJ2uleq4wqmqTjvT+Fo9ay2ZUScB1YzNNmVVJ0kJmF74n5nsN yzLGMNBfQ4vLfS24+u2+5GMpedo+YNbkZyBOZAu5l1eU0D+Vh9bUOQcsCKwSgpFgdGol nk1ieRUB7P9MlrOB0xNDtzIXGSfVXPFd0csddnYgkCVzrYb2yB8r18o7ddb9sbhLYvQH FZ/Q== 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=e3b1KNrJoF7hiZ9f5QB0CwtZdtDXpaOtcJztE2+Em/I=; b=UK1SYf9bx/3oYvujoPOTZvVU45bI6wf3cLF/mHV9sTt1ofzOvBA06aD9+eTHnwGhUW 6u8lvRMg9EnkFyDuXSLiIAN3m9Wy1g7uv45wJmXWwqwLSCUh1rfkv5AeRelNtamqeNxG vwCIaFFlBGbjaA35EwVkk4UV5H2kQtN16sqZDJDP7zhpIifJRQg325AdPKt+SyWn07MQ jvCF6wbM5pBR/krd1F6LKyZoLc61YUITnsMN+FXHF02nQEnJy7mGJt2g6DGCDg5v9irf TbPJfXw7bwkVTXt84wyZQBrZvHyUbugohj7hlJQnVAA/oinYPT4ZyssMC5+bLfmBjQLS wXDw== X-Gm-Message-State: APjAAAWuwwB+dSWvXKl4ROZzqKDdldBUxjmHeAHmcnFqL96fIs8TLKtU bdqD0jS69hMgQjtGf+QemJ4= X-Received: by 2002:a05:6808:ab4:: with SMTP id r20mr20634682oij.166.1573398852415; Sun, 10 Nov 2019 07:14:12 -0800 (PST) Received: from icarus (072-189-064-225.res.spectrum.com. [72.189.64.225]) by smtp.gmail.com with ESMTPSA id m4sm3996959otf.0.2019.11.10.07.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Nov 2019 07:14:11 -0800 (PST) Date: Sun, 10 Nov 2019 10:14:08 -0500 From: William Breathitt Gray To: Jonathan Cameron Cc: Fabien Lahoudere , gwendal@chromium.org, egranata@chromium.org, kernel@collabora.com, Jonathan Corbet , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lee Jones , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Nicolas Ferre , Nick Vaccaro , linux-iio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] counter: cros_ec: Add synchronization sensor Message-ID: <20191110151408.GB3984@icarus> References: <20190826095612.7455cb05@archlinux> <8abbe9360938ab851d16c2c1494ba56034775823.camel@collabora.com> <6b50bdff184e6af664b7a61e0a8a2cddc5718f0a.camel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6b50bdff184e6af664b7a61e0a8a2cddc5718f0a.camel@collabora.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 24, 2019 at 04:20:51PM +0200, Fabien Lahoudere wrote: > Hi all, > > After some discussions and investigation, the timestamp is very > important for that sync driver. > Google team uses that timestamp to compare with gyroscope timestamp. > > So the important data is timestamp and counter value is useless. > Just the event of counter increment is important to get a timestamp. > > In that case, my idea was to just use an IIO driver with a single > channel with IIO_TIMESTAMP. We discuss this here and it seems > controversial. > > So my question to Jonathan is if we have a timestamp coming from the EC > itself, can we consider this timestamp as a good IIO driver? > > Any other idea is welcome, however Google team would like to manage > only IIO drivers if possible. > > Thanks Jonathan, Should the the timestamp from the EC be introduced as an IIO driver using IIO_TIMESTAMP? Since there is no corresponding EC Counter driver in the baseline right now we don't have a conflict yet. If the EC timestamp is introduced as an IIO driver then we should make any future EC Counter driver mutually exclusive with the IIO driver in order to prevent any memory space conflict. At that point we may deprecate the IIO driver and move the timestamp functionality to the corresponding Counter driver. That's assuming someone is interested in the Count component enough to implement an EC Counter driver; otherwise, the IIO driver will serve just fine if timestamp is the only data desired from this device. William Breathitt Gray