Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp364634ybe; Mon, 2 Sep 2019 02:55:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeAqyoMa+2/gmFrhnTIwKzzYMi2A+tmRpRPy2mva8b2G7+NPNcPxz92Iuksq52a6XjxFJB X-Received: by 2002:a17:90a:9f4b:: with SMTP id q11mr12026206pjv.105.1567418114165; Mon, 02 Sep 2019 02:55:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567418114; cv=none; d=google.com; s=arc-20160816; b=TtkaIKMGyIXJkom4115oNS5Fsf36cbQl2d//vsOcLAbZB8mHTcL7bV4lYDO0J7d9UN T0Hiqqp3ctWeWzcxRegbPADRsHD7AlKMC7moW8G4xdxZY5RcCF4dDbJgHnZ7DzXQzsuf DBIn1cd2IF5Yi6Zf8rUGUZd/wT9XzvBWO60fqOQqbSOdd8blOedMMAnVo6Ac9eYB29cZ 8MNgw4YovM34CtgjR9gZYaub7+Rpk/IihAc8WisuWR1j88CkAlwiqfszwcXhi1eqK32G utIEojlzyFLN9pV7JmJseNDNPUK/kHqoM9BCAyDbam/qBbs2a3zKga9zFPibTFEAc610 QzKw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iifGZMpQV6Q3Nf2FisGpoD7UwukxL/0AVB68SuFmS0Q=; b=TCW5RlPszODMMzgtGDEI9WgqHl43g6/NhUjQlMNdozJJ4ypO3e8oo3LwYnQ5iWUe71 cjtUKdt9OaydZfet3pnisFR1ljz0KTGXWEdEdO1cUYrWC/vgfMb2+I3EHqoek/U7YwHX ZOdkFGFsEMe3l7qIQQFwaRZSlDX/+Evn8Wij3vxuwVi5gazB8h9ZHBnX8FwF93aDp9FH mGnw9CdgL7eS+IpXB07dCxH4yl+m4GOF07TLX46v9j2RiThR0xZHBVpoW/XsgejZgh+I wPm3tftkSq2bpSOZu6k7vweYS5irL3abjZxO0f+mSUQqOtKcVeX0ZWmcfgjjfbcnM/K4 rp6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bwA9kUL6; 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 t20si1407152pjr.88.2019.09.02.02.54.59; Mon, 02 Sep 2019 02:55:14 -0700 (PDT) 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=bwA9kUL6; 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 S1731232AbfIBJk1 (ORCPT + 99 others); Mon, 2 Sep 2019 05:40:27 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52890 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729489AbfIBJk1 (ORCPT ); Mon, 2 Sep 2019 05:40:27 -0400 Received: by mail-wm1-f67.google.com with SMTP id t17so13787921wmi.2 for ; Mon, 02 Sep 2019 02:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=iifGZMpQV6Q3Nf2FisGpoD7UwukxL/0AVB68SuFmS0Q=; b=bwA9kUL60mjWtPOOWDrB79uuGqR9VnOx5Yr9aCS44l66Uk/PU4luTGcMgX2j+KMwL9 8Cic5YpYp5busLyPMqZkUBYjfRGw+exRs5PZJfsvu/rWyc9tN9LOHeMBXvjwJy85mBji VkydsaCO809MVfGAeYcvB18PU0WlY2gNMHxLl7KaolxXWlkrGpxEnhA8wpBcEnBXSKCF k9qWp5VQQ5qpimO8EnZpBEN4wzYxIQKQmBvNUud8RwQObFJYkJdNpVzLrA+8OWpvFKlm MDipgDzjbhnEwJD2nRoH20SuYf7dfmzFNJVPivn3dtvMzhN4dQJjoHJxKkKLgBlbUtSP RkQA== 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:content-transfer-encoding :in-reply-to:user-agent; bh=iifGZMpQV6Q3Nf2FisGpoD7UwukxL/0AVB68SuFmS0Q=; b=KyA7KFxqRXH0u2YA6SLbpaLTQLeX0INRL/gtOB1qiifFsQTrijQVrOaNKRHl23i6IE CqZcTPd8XH2I1q7smZgOVaDisa03RkGDZv1tbOErsCcU+M4+V0lJVwE7k/uhOK57OuBS +XkFc8g9cJrmzatq19R7KOaKKdcU9uBUEl+VPLlitohFWR125TNTaCqvZXSzFEI2nfgh hrXM30U2K8lM06SiSajP+DFIDlLr99tCODCQYBF0TeZXFIRQlxmKtoRsDak1F3KSJpqF qOOhf50PVMAQhOWOCa2Mm/UU0/upsAiKUtY9m9aelvmXV5irhmaeQ/uQTKCxnYEOhLAB PBNQ== X-Gm-Message-State: APjAAAUir5/nZ6V3Cy1hRhWpPw9JolZi2lEqA3X37x8doxAd+YTtV6Vl QF4MzTPKY0CstqBeLNJh5qJbJA== X-Received: by 2002:a7b:ca50:: with SMTP id m16mr8080701wml.158.1567417225074; Mon, 02 Sep 2019 02:40:25 -0700 (PDT) Received: from dell ([95.147.198.93]) by smtp.gmail.com with ESMTPSA id c6sm17020244wrb.60.2019.09.02.02.40.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Sep 2019 02:40:24 -0700 (PDT) Date: Mon, 2 Sep 2019 10:40:22 +0100 From: Lee Jones To: Fabien Lahoudere Cc: gwendal@chromium.org, egranata@chromium.org, kernel@collabora.com, William Breathitt Gray , Jonathan Corbet , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , 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: <20190902094022.GK32232@dell> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Aug 2019, Fabien Lahoudere wrote: > From: Gwendal Grignou > > EC returns a counter when there is an event on camera vsync. > This patch comes from chromeos kernel 4.4 > > Signed-off-by: Gwendal Grignou > Signed-off-by: Fabien Lahoudere > > CROS EC sync sensor was originally designed as an IIO device. > Now that the counter subsystem will replace IIO_COUNTER, we > have to implement a new way to get sync count. > > Signed-off-by: Fabien Lahoudere > --- > Documentation/driver-api/generic-counter.rst | 3 + > MAINTAINERS | 7 + > drivers/counter/Kconfig | 9 + > drivers/counter/Makefile | 1 + > drivers/counter/counter.c | 2 + > drivers/counter/cros_ec_sensors_sync.c | 208 ++++++++++++++++++ > .../cros_ec_sensors/cros_ec_sensors_core.c | 1 + > drivers/mfd/cros_ec_dev.c | 3 + I can't see any reason for this change to be squashed into this patch. Please separate it out. > include/linux/counter.h | 1 + > 9 files changed, 235 insertions(+) > create mode 100644 drivers/counter/cros_ec_sensors_sync.c -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog