Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2108511ybz; Sun, 26 Apr 2020 11:18:57 -0700 (PDT) X-Google-Smtp-Source: APiQypKOVYG3hC6HAYfluMM3kFyI/YC45swPKLxBbbn93CRO3wjddPFLQKWaqC14c0KL1/pCc90E X-Received: by 2002:aa7:cdd9:: with SMTP id h25mr16458426edw.17.1587925137649; Sun, 26 Apr 2020 11:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587925137; cv=none; d=google.com; s=arc-20160816; b=FSPsPiOW2cyXv4QvJevXID3oYE0tJqiLTKZnf/hsKRAbZSNBLzYmtrMhVdMBMRhtX+ qfI97N3GrtyZYatSr4Dwj0+udVMqUXiu++Uaxj8yMEGe5owRNe8oWNFrfgRJ2Ry2vw8I 6oRX0H0aY5qbElPcfEbauHcbKpE881dNXsoilRpgV2ZaFj8sHO1eHEBbfD+rOSR9+MBE TMZbb+gLIdCZOfP0mnkDA4hste7KQ0H7C+w4QDKR0xksTa4o5zwhsytwLVyqNhU0GcPZ FU/rpX97YbmSwW2XKo0C7pXFatd2UEJha/PS2KksdGh5lGY8lKP+npNEku+RWyKAV1ab gweA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=iqz9A+83WD3+02kn7Oh9Bu/4OAapedOD5YI795wERkk=; b=xuM8Wk2Rt2FczvZgPu4txbyFuUOtxIQAaoMZa/EzwPCT7kGlBIV63ApSSoZFdmZo3H G8OoYBPCELfVL4H3E67cYQNeq9doSeSzX48oY4lpinXIUCqoyQKX/7cd3HRG5v1iYYeb llAq5zyKm/lR2ywBRMhC6pMal1UoNpv3YKTjHOKNWHvG7IB6IF+e4S9bPM2NwKIrwDor HYbi7wXtKPZgFzgX6Q67IlkOgOLFx+f5eMBe+1Oaskjti+WDhwS9JkgJCbTiJFLc6Lsx osgtKier/ICoOUNy/Q0sJROF65fkgOWTuBg/Jqq8mvJrZSZABCntdRdsxCvBh14WYjah MhVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=k75zGohZ; 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 y21si6869885ejq.259.2020.04.26.11.18.32; Sun, 26 Apr 2020 11:18:57 -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=@rere.qmqm.pl header.s=1 header.b=k75zGohZ; 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 S1726405AbgDZSPw (ORCPT + 99 others); Sun, 26 Apr 2020 14:15:52 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:63337 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgDZSPv (ORCPT ); Sun, 26 Apr 2020 14:15:51 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 499GLC1DQ9zDY; Sun, 26 Apr 2020 20:15:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1587924949; bh=LLoOzAvLD7C4p+NfULVwebW8Si59PUK0pEfcNYs87dw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k75zGohZ2RqPHx/Bc7TjhsSSfPIfat1RVKxhNC63bnHZktMJ9dpjxwp3pHIqRD6RT YBhlCv2Tqy3oURZ7Drp2N6AMGceOe57odEKxDQgpr3uTczH6iN81WZh+gb3WvTxzDd xCmVmKFRv9KZKieTTWAV7b2rjo7oaGBBpyxIpqYOXiV3279ht/MQ+ws2MEAD9JETIW NA7GjRGe9gL8NNRP1yP91UiuDhxfWgc7FOCaUbkL7Sp30GPxg5KmifYoO0hM0jhRb1 gLZoZa8y4LvBMPi5GL3nEZoPl4Tb/fQmrRp0aG1GJwbJN6BacLQ6Zpv82P8lNXAFjf afLHF5eZVW1iA== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Sun, 26 Apr 2020 20:15:45 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Dmitry Osipenko Cc: David Heidelberg , Dmitry Torokhov , Henrik Rydberg , James Chen , Johnny Chuang , Rob Herring , Scott Liu , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 03/10] input: elants: remove unused axes Message-ID: <20200426181545.GC15436@qmqm.qmqm.pl> References: <0f66e93c-9c71-73d0-90b8-15e0802a79c5@gmail.com> <20200426172954.GA15436@qmqm.qmqm.pl> <8b39ab58-dfc2-323c-3b25-4e9023cf8f0d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8b39ab58-dfc2-323c-3b25-4e9023cf8f0d@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 26, 2020 at 08:45:14PM +0300, Dmitry Osipenko wrote: > 26.04.2020 20:29, Michał Mirosław пишет: > > On Sun, Apr 26, 2020 at 07:35:47PM +0300, Dmitry Osipenko wrote: > >> 26.04.2020 19:11, Michał Mirosław пишет: > >>> Driver only ever reports MT events and input_mt_init_slots() sets up > >>> emulated axes already. Clear the capabilities not generated directly > >>> and move MT axes setup, so they are visible by input_mt_init_slots(). > >>> > >>> Signed-off-by: Michał Mirosław > >>> Reviewed-by: Dmitry Osipenko > >>> Tested-by: Dmitry Osipenko > >>> --- > >>> v4: reword commitmsg; reorder axis setup > >>> --- > >> > >> Legacy pointer emulation doesn't work using v4. I think it will be > >> better to drop this patch for now and add this hunk to the patch #4: > > > > Have you tried it together with the next patch? It adds > > touchscreen_parse_properties() to initialize axes also from DT, and > > should be equivalent to the hunk you proposed. > > Yes, the touchscreen_parse_properties() takes bool multitouch for the > argument, and thus, it needs to be applied to both MT/non-MT cases. > > https://elixir.bootlin.com/linux/v5.7-rc2/source/drivers/input/touchscreen/of_touchscreen.c#L64 input_mt_init_slots() should copy MT axes to non-MT if they are described before the call. With v5 applied, I can see in evtest MT and non-MT events. Best Regards, Michał Mirosław