Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp516312pxb; Wed, 14 Apr 2021 23:18:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG1nWqwpm3OTI5oJEJYFHbzIzyH4G1rUMEXGDm7smSVKUbkVxaVx23vWKjmwgJ+XryUcGd X-Received: by 2002:aa7:9712:0:b029:24c:281e:c558 with SMTP id a18-20020aa797120000b029024c281ec558mr1867129pfg.77.1618467533618; Wed, 14 Apr 2021 23:18:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618467533; cv=none; d=google.com; s=arc-20160816; b=r82p1BxFXLzwb6zpkiRJIE4O3c21iF2khnWnwpZN+VjMgLEO7cMfBU1vCRFYG/rjCh j8+W25PQ9OtX6GZUEaeo4EKIFNAbTm6gfKgpZeJ3CULjVYpBzNLNyh+nAKzOWSGgirg5 hmbT5Puqqak4yp/RrkgoAkvB76PYLN8Y/nTJbVdH3K2i8c+NhmdMWErEvwiesJFWdfu3 Bc6NaMqKwBSKnyUNTeAPGqreBCXsHfa+5lkgjlwK+dciBdDd+bR1+bi2C4z2UaVJkyCW yORZrfQSaQhNI/0Wm3O9KHVhwhL7VSDrUPrRSa+Xa9aTC2kV0CAVZQRYP0R7ygQllprz H5Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=xpJeKXmkNApc5i/qtQ1rQItiME+Z8v2/EI2GZ2dmgzI=; b=q0QqZTkSIBa7CYwVv98N6Yr/Gh/5JR8Dq8gZBptAzJqz1rcLG7X3JzFmR9sxbO27ie M04xedZfgt/BXVfRJw6ifZQoSNBM36t5dD6bnZHxJ7dWXRiMREiStYWApWmDJYjtKKWQ HXIQl3dV5eBSngAOdtZlT9k3Rew6F4TiM8TQPKu+RLTNGp/pCH7t1mc6DsvWWrT8Gj5G r8147+FdDQnFVxshbTs8VLix3iyFr/K5/Dz6kTnmxgyb9IRRn1HR+P9H8EROjskl08p2 0aGLeRNZPDuz5qlhe1VanYvpKsNJ+51F9U/0A1jFWgZeU2sElDh/blUkeHAp2HNDDuPF LP/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@who-t.net header.s=fm2 header.b=aZOQo76A; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=qQs0eRpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si2091858plg.218.2021.04.14.23.18.40; Wed, 14 Apr 2021 23:18:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@who-t.net header.s=fm2 header.b=aZOQo76A; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=qQs0eRpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231156AbhDOGRD (ORCPT + 99 others); Thu, 15 Apr 2021 02:17:03 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:59443 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230491AbhDOGRD (ORCPT ); Thu, 15 Apr 2021 02:17:03 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2DF285C010E; Thu, 15 Apr 2021 02:16:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 15 Apr 2021 02:16:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=who-t.net; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=xpJeKXmkNApc5i/qtQ1rQItiME+ Z8v2/EI2GZ2dmgzI=; b=aZOQo76AVTMtgbcrHiVUCRwraZpTquqv+O25mIyDPhe ld7iJpzKpWwUX5KFsEaTLErO8XS/WBMStPpip1ZID3w0c5CuAqjSnsvedObaf8Lf gGNWmaRRlHLTXQBRyW+1tFSNSbVn63UQJf6f3Rfff6FXKpOzpvboOb2YlD9/DZN1 5aW9IuaR80CWnffFlmw27QgAaGbnf6QCXHlU8IJ1Qu+2jUtbTcuflvGSp76YdRkb ENjKzM3fnskbc1xVLuQLf2KNIQkyR3s2mXZ+ZjEftyx0ybt6x93x1aJh5WoEl93F N5OqC1z6/ripgt3sm8rj7v0pirA20m6eIirZ6deuePg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=xpJeKX mkNApc5i/qtQ1rQItiME+Z8v2/EI2GZ2dmgzI=; b=qQs0eRptVmhNAPh5SXRF+s HucmhY3lq+Bmsf0WMOltAkqwSrvX42lqqG3efLwv5Flm1C7K/O7gXPjsZgDtew+U ymJ1Z1lq8pLDU+t5XC6WG/KLEcctsDx8H24T2Ics92sgT11rN6FgFiDJJYujkozy 2vgX+fFRctcUCQI0lMouJxFMIpRIk9fJHAuweesm4dBSNs5Xsfw2+26QpzUKI3WU F0aX14izIk/BrqsK16rxCsnypx9Jnr5ZxJPLikSsdByJybOsaddEKrgqsCtbcnF3 6ro4SxDP+mKUqstglrFx0CvNTgkFZwE9wig9Zv6AO7oO8ZZ87tmqxdhL+4GEQGZw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudelvddguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheprfgvthgv rhcujfhuthhtvghrvghruceophgvthgvrhdrhhhuthhtvghrvghrseifhhhoqdhtrdhnvg htqeenucggtffrrghtthgvrhhnpeehhfehfffgheelgeeuudelhefgvdefveekudevjeev jeevvefggefguddufeeuveenucfkphepuddujedrvddtrdejuddrvddvkeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdhhuhht thgvrhgvrhesfihhohdqthdrnhgvth X-ME-Proxy: Received: from jelly (117-20-71-228.751447.bne.nbn.aussiebb.net [117.20.71.228]) by mail.messagingengine.com (Postfix) with ESMTPA id BDD5F108005F; Thu, 15 Apr 2021 02:16:36 -0400 (EDT) Date: Thu, 15 Apr 2021 16:16:31 +1000 From: Peter Hutterer To: Dmitry Torokhov Cc: Giulio Benetti , Rob Herring , Jonathan =?iso-8859-1?Q?Neusch=E4fer?= , Henrik Rydberg , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 3/3] Input: add driver for the Hycon HY46XX touchpanel series Message-ID: References: <20210413144446.2277817-1-giulio.benetti@benettiengineering.com> <20210413144446.2277817-4-giulio.benetti@benettiengineering.com> <080a71d9-d629-5589-c943-4e65a7f414d8@benettiengineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 14, 2021 at 10:26:13AM -0700, Dmitry Torokhov wrote: > Hi Giulio, Peter, > > On Wed, Apr 14, 2021 at 01:22:55PM +0200, Giulio Benetti wrote: > > Hi Peter, Dmitry, > > > > On 4/14/21 8:46 AM, Peter Hutterer wrote: > > > On Tue, Apr 13, 2021 at 10:44:07PM -0700, Dmitry Torokhov wrote: > > > > Hi Giulio, > > > > > > > > On Tue, Apr 13, 2021 at 04:44:46PM +0200, Giulio Benetti wrote: > > > > > + > > > > > + input_mt_report_pointer_emulation(tsdata->input, true); > > > > > > > > For touchscreens it does not make much sense to report BTN_DOUBLETAP, > > > > BTN_TRIPLETAP, etc, events (they are really for touchpads), so I changed > > > > this to > > > > > > > > input_mt_report_pointer_emulation(tsdata->input, false); > > > > > > > > to only report ABS_X, ABS_Y, and BTN_TOUCH, and applied. > > > > > > Can you expand on this please, just to make sure I'm not misinterpreting > > > those codes? Those bits are just for how many fingers are down (but without > > > position), dropping those bits means you restrict the device to a pure > > > single-touch screen. Or am I missing something here? > > They are indeed represent number of fingers on the surface. I think I > over-simplified this a bit by saying these events are only for > touchpads, as there is allowance for BTN_TOOL_*TAP in > Documentation/input/multi-touch-protocol.rst for MT devices that may > report more contacts than what they can distinctly track, and it is > not restricted to touchpads (but I believe in reality only used by a > couple of "semi-MT" touchpad drivers). fwiw, almost all touchpads on ps2 use that functionality - they can track 2 touchpoints but *detect* up to 5. There's significant insanity in libinput to deal with that because it is so common :) semi-mt is orthogonal to that, it's the an inability to track two touchpoints correctly (only get top-left and bottom-right, but it's guesswork which finger is in which corner). > What I meant to say that for ST fallback of MT-capable devices we > typically provide BTN_TOOL_*TAP for devices declared as INPUT_MT_POINTER > (which is touchpads) and for INPUT_MT_DIRECT and others we only provide > ABS_X, ABS_Y, ABS_PRESSURE and BTN_TOUCH (see input_mt_sync_frame()), > and I think this driver should follow the suit. ah, right. that makes sense, thanks for the clarification. Cheers, Peter