Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7890055ybi; Tue, 9 Jul 2019 06:00:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlHhucQ7sOrMu9SOjmG3TefCIF+reAOdKRVEPqTIyQkqk1uOulRFlPD7j25W+1yNQpWwQy X-Received: by 2002:a63:1a03:: with SMTP id a3mr28902732pga.397.1562677242682; Tue, 09 Jul 2019 06:00:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562677242; cv=none; d=google.com; s=arc-20160816; b=uGE8fGS8o8S+4mCGbymUtHkea+BJ178QGVlrdhp9VTWwpPcy3oNi+ht1Nh1QlS4rnA 87l3qsL833MlyL64VRsfuP51SdrvIPym/zskMXg9j8iEIc/p4ZoefyvLkewu0PxpS5jy 2dkmmx9QbHZNeZmJTE9rDHCh+svEUBjAUl36bvjopp8V1JBP8nAHU5dYbO7FdxgOGQUi 8WkHuDDWGY+ULYHuO9w8/bfkOqVsCVl7jxQcKI5HqM6Mp1K6HACzF8smSladAepGtS0L bLWkYH20xBdA4b0thmnOnVvgayPrVRiJg+439f0SVtfATC/omQ+BIw9yBsjkZPLf3JMx 7Xig== 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=qpg1FyOXGzr+sJBfEVVPunCDWxsdH7uOEWbG0BnaeR8=; b=NpSrWtEj3ysb2j1oaf3KXIctp2D5GYx8Ay4lcppJvARCh+KnVLMqDBUwFF3Sx2CM+v 5XySNVwvGOaGP3BOtVxLh0CvmrA8ULfD1zUtVL7lKAakQPUhYu692KPufSqyp1roTSvB JZnDry27l9jxUA9Ndghb3Ejhy5msfV1mobhIa8IvvVhZ1b0qMezZ2vAJFo4wfYXrazfR bztc1IT8/Cz5RDcQFksfb71gjh4RgvNx89bhq8OwDMn1WzAgiZ9++C+OVz0oCK8zLJ86 Z0gW8fXuh0XF3tn/h63dsEPnnfGsyXLhs5Ckfk+OzaP9adJW4O9yB2m5JMNMUiiS3k/K IeQw== 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 y6si1295958pfl.288.2019.07.09.06.00.27; Tue, 09 Jul 2019 06:00:42 -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 S1726890AbfGIM7z (ORCPT + 99 others); Tue, 9 Jul 2019 08:59:55 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42494 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfGIM7z (ORCPT ); Tue, 9 Jul 2019 08:59:55 -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 70FE328AC6C; Tue, 9 Jul 2019 13:59:53 +0100 (BST) From: Fabien Lahoudere Cc: kernel@collabora.com, Fabien Lahoudere , William Breathitt Gray , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lee Jones , Gwendal Grignou , Nick Vaccaro , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: [PATCH 0/1] counter: cros_ec: Add sync sensor driver Date: Tue, 9 Jul 2019 14:59:41 +0200 Message-Id: X-Mailer: git-send-email 2.19.2 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 Gwendal Grignou (1): counter: cros_ec: Add synchronization sensor drivers/counter/Kconfig | 9 + drivers/counter/Makefile | 1 + drivers/counter/cros_ec_sensors_sync.c | 200 ++++++++++++++++++ .../cros_ec_sensors/cros_ec_sensors_core.c | 1 + drivers/mfd/cros_ec_dev.c | 3 + 5 files changed, 214 insertions(+) create mode 100644 drivers/counter/cros_ec_sensors_sync.c -- 2.19.2