Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1255415ybl; Fri, 23 Aug 2019 16:17:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyovElH3tYSCBNXjlFmg0iEybkrcXDV9qaZP2mBJm/nsSRiAdiDiPwpD1atxBCRX+zZ6vOd X-Received: by 2002:a63:e948:: with SMTP id q8mr5851667pgj.93.1566602272170; Fri, 23 Aug 2019 16:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566602272; cv=none; d=google.com; s=arc-20160816; b=DDEQSL0Aye6xm7hK8wZeWrFhWJ31hAR6yZGJCghMrmO0TmMCsiXy66rv3EklImB+2i NwmAA5iVnE1A1QCrp1UVDNImrPgFhaG3SOCJdivvdKQMBHUaw4QYZdbINLJ+Ns9Gw6al 5V3GI+rJwPTEr3XIteFh6ANBOSQzGWv8Oja3r9jl1ezoqf14cO/6HalvbYv1GWPsQi5D fmMJK49Aa4B4URPQgBMzDtD6ajTjuY3ouCghHvz8qKgRsnWxn5aq4qMQHLToN9PupVvw FMhBMuF7gFn2LdR/h0GwroBhbwK1QGSt88B9dCOPpfgcNUhih/h7+hpY97dtGwJhitHb yZaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=TvRmd88HOy2DWRo4KgI2i8/U7fvi5DRk1VPOa8JGSXU=; b=aWzWCgFBJSS/1GWMLb+SRUCYz2QcFsdZqMgTMaj9JrYwfYiIiaxrxmys8yjTJ7Kk8T hHM4AQvtB0fhw+BXloUyNtb+CQVtxcewW4+y28NCKUVVq5uU8NavVeJBr23+B7AMcP+m 7Mm3PbNeS1Df96Ai6/3tGRDE6iRfasVCwPxgy2BUaYoluf8pT/Vhnuqz6n9/XunzNh0/ F6YG9lftLiDS+YMCDW0xmSqE7CbYd8v2w+C+f+gs1IoOyMdYOqHuzfE/05rEBsv/jfkA ozO4lVM2Xax7w4PtaJBdMjA7w/JFCpCVso2YQ91QLUIkDmeQ2qVChy16pc2bDRKnIeiU vnbA== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14si3850108pfp.253.2019.08.23.16.17.37; Fri, 23 Aug 2019 16:17:52 -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; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394843AbfHWMmJ (ORCPT + 99 others); Fri, 23 Aug 2019 08:42:09 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:46026 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393272AbfHWMmI (ORCPT ); Fri, 23 Aug 2019 08:42:08 -0400 Received: from laptop.home (unknown [IPv6:2a01:cb19:8ad6:900:42dd:dd1c:19ee:7c60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: aragua) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 6DA8528C1A1; Fri, 23 Aug 2019 13:42:05 +0100 (BST) From: Fabien Lahoudere Cc: gwendal@chromium.org, egranata@chromium.org, kernel@collabora.com, Fabien Lahoudere , William Breathitt Gray , Jonathan Corbet , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Jonathan Cameron , 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: [PATCH v2 0/1] counter: cros_ec: Add sync sensor driver Date: Fri, 23 Aug 2019 14:41:26 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some chromebook EC provides a counter to get all vsync coming from the back camera. This series introduces a patch coming from chromebook kernel 4.4 designed as an IIO counter. As IIO counter will be deprecated in favor of counter, I rebase the original patch and support the new counter API. The serie need to be merged after https://lkml.org/lkml/2019/7/9/305 Changes since v1: - Drop code related to IIO_COUNT - Add external attribute to the counter driver - Add cros_ec_sensors_sync.c to MAINTAINERS file Gwendal Grignou (1): counter: cros_ec: Add synchronization sensor 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 + include/linux/counter.h | 1 + 9 files changed, 235 insertions(+) create mode 100644 drivers/counter/cros_ec_sensors_sync.c -- 2.20.1