Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3632052yba; Tue, 23 Apr 2019 07:08:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJzmaMXEJjAzAj6a4Fgx+eSB6h2fhgSgW3meP3RD1BwDv+orwT4aicfhwvgFCNJdGQJ1er X-Received: by 2002:aa7:820c:: with SMTP id k12mr27031940pfi.177.1556028508539; Tue, 23 Apr 2019 07:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556028508; cv=none; d=google.com; s=arc-20160816; b=PbVws/LMjDf7v5d3IzvjyIjq3Svhu1ms1sI0UhzjwmxUfnvAfkImVz1uj5eWMZ5iFr Ftys4ntwWQEayTZNbo4WFzH5omJt8BZfhL1uMTFAwp6gGD5skLrJTbU4T0x/EalrdKWS ARf5ueJ8Ofz8ZY9kmy9lEpYxRf8Rv2jEEqTVd0XUvrYMcT7B+lvBlRBcf55FGjWnIjRV sBLX5wazUuO/+JMge+10jG/UFQ3MoM/bTTc41ttPiD2OMgip2N/bhOusOx+uxkRVnvvS DHPhuxcr4XklwqaALkkE+vnLbTTAYLw5Y1vpWLBlfcSBdRXSdzPk+Wn2tE+lhnUVMij1 TLXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=bYQuDANAvEzcNoTTvVTiwiok37mqdJnLTf/0CFWlbFk=; b=qsEqfQOO09PPIErSgY8sjqK/ZYHt4qTVFjmrCGpYpnke1StztkIHutxfG+UUyc+qM3 UQiAt7HPoUH6FoQnFJFNPLHgwmjXyE4bemNIHW8DL3YIW1m9iTD/vikLBVKkgCiPyS+N O1p4aF17jYDPl5iH26jgkl32anzLjy8Sg1Ezutwqn5VqAtp4cL079yaf/e7pyzNXCQo5 EIcDJKyLb9hgvLhPV94FE1Fr/DVa12OjCxK5pgsT8h6PL9ZLMM4RnsusWv6v1hOWR55N k6Wj250R7gDSYn3EfUNY/DTUuXg1onFlypBjiuinGgcdIh8T3tYzKn+MF++50y9umQkF kOcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=GMPzdLkO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si889158pgi.276.2019.04.23.07.08.04; Tue, 23 Apr 2019 07:08:28 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=GMPzdLkO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727954AbfDWOHB (ORCPT + 99 others); Tue, 23 Apr 2019 10:07:01 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37616 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727740AbfDWOHB (ORCPT ); Tue, 23 Apr 2019 10:07:01 -0400 Received: by mail-wm1-f65.google.com with SMTP id v14so243254wmf.2 for ; Tue, 23 Apr 2019 07:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=bYQuDANAvEzcNoTTvVTiwiok37mqdJnLTf/0CFWlbFk=; b=GMPzdLkOHLLG8OA3685mgyADgQhw07ltg5ENwoBtTLUBBndpVELtetgzJFyieS1T8E 3ujUfE2J/jkfBigobfI5Er3uI3aCIsf7gHPEk5rJFh47FUAFhI/uPYy5+wc9I90fdfaw qt0OPmOOh3PKaWkeZcge0rRbn2lR+Iqf2yjVgCUnx6uwOfwm/0mVpwI9XEciJl1FlZaI B3BW5cbfpmIbJaZ5TO3nyxVT1cMhdZIerBfnt2Kdd047QJe92v1TdbYsyGqDEIlHHGCc cREMUBHE2DrWWtV+D1LcG2C9OlEuhL+bb3JDSJ5P2T3vDREmyn7vR1uqagR7nIo4trYQ 4icQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=bYQuDANAvEzcNoTTvVTiwiok37mqdJnLTf/0CFWlbFk=; b=dqO1Y14REKgWKADzWdHM04kRAmPdbQGEHbyY3ir+Spq0kNAhj+fDBKyJBe6SjvLI4R WQEIkOEFYXj8WfRzbPdweEoh0mTS9lt1p6GEg3VQ5kESOjjFlaTQTiQZsKm3QwJRWpRu ELyXoMwjRTSoZue+4OYcXQkmT8f19ZcBeH4UHgl1r1uKZXLEJwh5GdWO28uGGtyneUJ+ i9UABsWdtOiC861IWwEfu+3LAx6vy6gee56cVbP0FNptuy+lFq2Yts1tOSWG7CtPR22W 40G8fj0ZbyoqreQTbdeuT5FI27X5nhn6QSbJQgzSo66zrOXTI4ElIxxrYivu2HbttEjU O00A== X-Gm-Message-State: APjAAAUC9AkplQHcyI6ChsXsZZ5BnpzBkeVQ4uOXt3Of+79PMjyketkF KGesTLBVfgK40oLoPp8qVjuc3CZh6y6omA== X-Received: by 2002:a7b:c115:: with SMTP id w21mr2484662wmi.55.1556028419084; Tue, 23 Apr 2019 07:06:59 -0700 (PDT) Received: from [10.1.3.153] (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id h8sm15562642wrx.45.2019.04.23.07.06.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 07:06:57 -0700 (PDT) Subject: Re: [PATCH v2 3/3] iio: Add PAT9125 optical tracker sensor To: Peter Meerwald-Stadler Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, baylibre-upstreaming@groups.io References: <1556016046-31231-1-git-send-email-amergnat@baylibre.com> <1556016046-31231-4-git-send-email-amergnat@baylibre.com> From: Alexandre Message-ID: <8abd482d-ae1e-ba86-c050-317fc0208fe6@baylibre.com> Date: Tue, 23 Apr 2019 16:06:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-7; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On 4/23/19 13:33, Peter Meerwald-Stadler wrote: > > how is this thing different from a mouse device? I developed this driver to detect the board movement which can't be detected by accelerometer (very slow motion). I admit this use case can be handled by an input, and I'm agree with you, PAT9125 driver could be an input. But this chip is able to track different kind of motion (flat and rotation), and additionally have an interrupt GPIO, so using it like input limit the driver potential. This chip is designed to work in industrial measurement or embedded systems, and the IIO API match with these environments, so IIO is the best way to exploit the entire potential of this chip. As I understand (from https://www.kernel.org/doc/html/v4.12/input/event-codes.html#mice ), mouse driver must report values when the device move. This feature souldn't be mandatory for an optical tracker driver, specially for cases where user prefers to use buffer or poll only when he need data. All other comments will be fixed in V3. Regards, Alexandre