Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2076157ybz; Sun, 26 Apr 2020 10:34:42 -0700 (PDT) X-Google-Smtp-Source: APiQypLX5ALeOJ0rTBIBG95BD/e9ZrXmM2XU0YkVZmoY/UFR1zwzw33VZ4+2rmlVW8lfUJCjrIYd X-Received: by 2002:a17:906:9450:: with SMTP id z16mr15778570ejx.166.1587922482442; Sun, 26 Apr 2020 10:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587922482; cv=none; d=google.com; s=arc-20160816; b=iiYj3GvCHg1iXFTjijYzG5/KmHip9vjLzQwNTjiSx44VitFfJEEWN4sUXTVhogJV72 9K/8UhIgkU4fwIpIPuBVhPe8qwzUyjvLpjyqG9+PvTncqQR7wSmfSy5/V/+z0Nw/TfDX fXt0C/BHEmOaE+QdNOqhRfhXE0V+DXFw8u/H8p21SAPDXLOVy5MhAJgOMIgLZ2510OXj hMHK4BQ3UVO0yxyLx2c2iMHlGKTgE5FY4rw56jij0FBQJYW2sy0fTFZwv5uyq0Hjjhx8 djmtHKh5yKdGJyNAt9pry+N0OUgF95YphJuLq9yW+wUvmkWAeIw+RKjLx2OWtvXIMNw6 +k6g== 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=z2Xgop/6qA1JjF1pe/fDLWhCxSi+WxfJ6J/Q7dxQD0M=; b=X+6rUAh7KqK9F9Xvrg5r91t63K2JP1FZ7q42PT0abF7twNkGu773/iBsjhl1bX5o5h fxepan8tapYpN4cbOwtHdVjSMJZ5OoUmPFtASxuMZuT4fu30OV4qfGe0s03M2apDQh5R A3j/87utlYOoqCs1LLzScxWN4IN57YOkzSsQ66lzPBYmfUvK0+Z2/8ljBWQl5jeIozcD uEBI2wHIBZZh7d1CSfcQXrkT4ugvnB9/5L/heqHMDJaeUP4A1CP6/HuNfnOsvNPhmJE6 5QTpIkm1pC6q02rqxtFw++oFsFBHoBFYRl9zVGKFiehpwHm0CUM+SQEKU6bA3Vynr1i8 lvGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rere.qmqm.pl header.s=1 header.b=dgRGP6dm; 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 g7si7168426edn.251.2020.04.26.10.34.18; Sun, 26 Apr 2020 10:34:42 -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=dgRGP6dm; 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 S1726174AbgDZR37 (ORCPT + 99 others); Sun, 26 Apr 2020 13:29:59 -0400 Received: from rere.qmqm.pl ([91.227.64.183]:44143 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbgDZR37 (ORCPT ); Sun, 26 Apr 2020 13:29:59 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 499FKH6VGkzDY; Sun, 26 Apr 2020 19:29:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1587922197; bh=VPkMbWlP/qIhkgThtdNrl172mDp6KFzQO6+Nt4E1ZKc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dgRGP6dm1WxB/ewGd/mZ7Jzxh5tjn2b7JfNrvbbBItnxgJdPsOiFWv/lIFQr1X3DE sLBMX73cmK6MPi5mCRAUqKuQTyx6jmbvYywGQ3JxbiM0q0TV7cpC3YDQKYLcbB+6l2 YX5xB3t/BrmHH5zJTX5l2oClyWpjPhk4xP/wRuuhbPkAAKhZGyUyZcTBuYjWYrlLOp JZhMqwEwYv6oBct6KImH0v18HDJF8GZP0PCb0lUTn/BvCzZ7C0vEpJayqO57UDbUGR NX1arHlruR64WhzS987mX/wgy9JGLGdFN04poFXfpOrztEzrTpPeIo3h69mUXMDzf5 zfqF96se59c+g== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail Date: Sun, 26 Apr 2020 19:29:54 +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: <20200426172954.GA15436@qmqm.qmqm.pl> References: <0f66e93c-9c71-73d0-90b8-15e0802a79c5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0f66e93c-9c71-73d0-90b8-15e0802a79c5@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 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. [...] > Maybe input_mt_init_slots() could be changed to set up all the > properties that are needed for the legacy pointer, but I'm not 100% sure > because not very familiar with that code. Perhaps Dmitry Torokhov could > clarify? The code of input_mt_init_slots() looks like it does initialize the properties needed. What does evtest return with and without the patches? Best Regards Michał Mirosław