Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1993371ybz; Sun, 26 Apr 2020 08:45:31 -0700 (PDT) X-Google-Smtp-Source: APiQypI2INkafu3blxbeNMhhJTEfZZY7EFN3clkldRGUfBshW6vMDVqltFVT/P2pYjHJIBrtQV5P X-Received: by 2002:a17:907:9481:: with SMTP id dm1mr16418937ejc.9.1587915931158; Sun, 26 Apr 2020 08:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587915931; cv=none; d=google.com; s=arc-20160816; b=PLFtr+VFZFr9ChazuU9CP26Js8ifDnGkznc+sJgnWnNT183mItODZcHl6v6mEECNWd nELQTKbxQg0/BSw2+0OE09h/sBqvL1dJRVXLUUqSk5zk6MDME6bJKROJCl39uSkk8fY3 6KvOdWh43GKpec0aU3fMiCTj712pjHTHkThgCalqJ8KfJPPt9MMQzhwFTzjZAQnlhVIX /FnCsvf68N2JnICnYCI5VWzJAq2Oso6IsvOgUMCJkn94b0rM4lcirqBxxNvpAygY/o70 NFR5RoPk0CDIb76wGbKJWYonb9yZBuXYUkh/OjWoA+v/xhE2lxr0IUEtroXOZXPbmzrl IOug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=pXhCVLeGuzt1Hx8MnSSCOHZYQw4yNVKrc8bMnaEx8d4=; b=W9cJ4O+1h9F91n0YyJZXIT6MXWRYtmyMRR/5xpR5gCorPpM4PZ/lFrg99gwnogH4Is BN0V/oBFq8ELa+OWc2WzvL3rdgHTAEh5cRntWVPLAMWIWT+rWGiaBtXnfEGtcghXBCLY J90dy7km9EY4nM9eb3UZPso4bDxwo6ksHORM5CHe5x3P/s26rXBHRTXP4ywNOGuXlg2A CAHn7NC0H+Q5ooKsZDOW1PaNz+GBK2d+N1lOU6l/mYsaakxgTrsoBhqX8jrXu5tQyoSg jLOMyfBvtiAoM7caX7xHvuq/Jk/QyScgpr5om8IUp1vFY7vpugSUKnab0MAGXdeiVBN8 scvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D79KSYn5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 4si4522143edh.424.2020.04.26.08.45.06; Sun, 26 Apr 2020 08:45:31 -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=@gmail.com header.s=20161025 header.b=D79KSYn5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726194AbgDZPlj (ORCPT + 99 others); Sun, 26 Apr 2020 11:41:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726143AbgDZPlj (ORCPT ); Sun, 26 Apr 2020 11:41:39 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB28EC061A0F; Sun, 26 Apr 2020 08:41:38 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id m2so11681626lfo.6; Sun, 26 Apr 2020 08:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=pXhCVLeGuzt1Hx8MnSSCOHZYQw4yNVKrc8bMnaEx8d4=; b=D79KSYn58cGBytW8sLcNr6b0i5H6Axd2ZM5O0H9n0M+E+vKJbz8YKkgXtdmZ2YYKgj uVBVp5Qha64xSkPRZUm4cDdJuOxNTAz5lX+ipCMPdkt6HchKqMBnvrc7ZQZBnqMqSxcf XXvQ2wtWrwGeEMS0mOLYKfspx6wx+FjPIzcWpU3uTNz7aFK1w0mEyeVwSWZlgwF+4xmi hZJHJjZ787nyiobN/YaPVwnQJhoCc9iBgiIJX/KMZegsjCGM313t6c/nPqmRgdSXTYXl yFKv+JKxoJ4aRYgfQxPVCMvoXgWulqcDnNBEPkUPgHC7E4YSUNUFI0kAWgtc6AcT1kil 6dDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pXhCVLeGuzt1Hx8MnSSCOHZYQw4yNVKrc8bMnaEx8d4=; b=hAX+sVw2TCB9IgYof4WdmlsdzeZGwob1jX7eYXQQ5/BGuGSVwTLa2CsH6dg5jHQXLA 8+PHIsuDP9y9Y062Nnc6w9pjlIWLzlwYxSvEMIXR0foQfgUcgy627KiUNIw9uSNBKIox qj+IyDTeslrfiH8vB9E8JqqqUhIR4UWVHBgyaSktfA4Qni5YmL4131inRq5IazAHSWvn eKSugVNpQnXNbmyvIPSp68BUcD3aefRUprLb+R7OUBZK0j/2ynNFFxfOGFzUd1sIq2u8 giuqvEdvFUc0BXVQv6WaeIew/ffn8claBBtVpPQ73BlpAXlDAiUXvgF/2QQBZLMTiyf8 mVrw== X-Gm-Message-State: AGi0PuZBXgYaNhEe03ZSa81N9RBY52q90zZDMcVLSOcykomM7rHpWDPR HXdMXPNoDIjl8UVDw/dEYN1DYJEP X-Received: by 2002:a05:6512:3189:: with SMTP id i9mr12672004lfe.178.1587915696897; Sun, 26 Apr 2020 08:41:36 -0700 (PDT) Received: from [192.168.2.145] (ppp91-78-208-152.pppoe.mtu-net.ru. [91.78.208.152]) by smtp.googlemail.com with ESMTPSA id r12sm6726588ljc.12.2020.04.26.08.41.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Apr 2020 08:41:35 -0700 (PDT) Subject: Re: [PATCH v3 3/9] input: elants: remove unused axes From: Dmitry Osipenko To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Dmitry Torokhov Cc: Henrik Rydberg , James Chen , Johnny Chuang , Rob Herring , Scott Liu , David Heidelberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <62e897b0d6f6054dae26c853a9a1f1fb6d3c420b.1586784389.git.mirq-linux@rere.qmqm.pl> <20200426045200.GN125362@dtor-ws> <20200426112150.GA16230@qmqm.qmqm.pl> Message-ID: <489b497b-fd25-fa6b-59c9-9d925c489fe0@gmail.com> Date: Sun, 26 Apr 2020 18:41:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 26.04.2020 18:39, Dmitry Osipenko пишет: > 26.04.2020 14:21, Michał Mirosław пишет: >> On Sat, Apr 25, 2020 at 09:52:00PM -0700, Dmitry Torokhov wrote: >>> On Mon, Apr 13, 2020 at 03:32:23PM +0200, Michał Mirosław wrote: >>>> Driver only ever reports MT events. Clear capabilities of all others. >>> This is not true. input_mt_sync_frame() calls >>> input_mt_report_pointer_emulation() which does emut single-touch events >>> for the benefit of older userspace (or userspace that is not interested >>> in multitouch). >> >> Oh, I didn't notice that. Looking at the code, I see that >> input_mt_init_slots() sets up the emulated axes in this case. >> >> Do you need me to update the commitmsg? > > I tried Ubuntu 12.04 that uses ancient libinput (or whatever it was back > then), which doesn't support MT. Mouse doesn't move at all with this > patch being applied. Without this patch mouse moves, but it's not usable > because the cursor's position is wrong, i.e. mouse position doesn't > match the screen touches. > > This means that input_mt_report_pointer_emulation() doesn't set up > everything needed for the legacy pointer emulation. > I meant the input_mt_init_slots().