From patchwork Tue Jul 9 12:59:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Lahoudere X-Patchwork-Id: 11037007 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E3D7B138B for ; Tue, 9 Jul 2019 12:59:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D34521FE8B for ; Tue, 9 Jul 2019 12:59:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6E1A283A8; Tue, 9 Jul 2019 12:59:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C2B21FE8B for ; Tue, 9 Jul 2019 12:59:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726529AbfGIM7z (ORCPT ); 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 To: unlisted-recipients:; (no To-header on input) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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