Received: by 10.213.65.68 with SMTP id h4csp2112062imn; Sun, 8 Apr 2018 20:01:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+OC1KVsAKb+M8JPwJtOn+yQdCZB9jRsyb9/2jLfjqde2T22B/nhW3turhX8TsCX4mxrXeH X-Received: by 2002:a17:902:5902:: with SMTP id o2-v6mr35879338pli.81.1523242897989; Sun, 08 Apr 2018 20:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523242897; cv=none; d=google.com; s=arc-20160816; b=dIfkObJsdgldT3dJ8ViFKypSzwT6/NarQd8VyGyxKNoxrdmnwBDtmbHPUaNtS/b8nr oqlD1w4E73pakbfWMeQgoJUkhXinaEIoOr9X0yr47E+vs2SPGI3Mb7/0XAn2pVXah+qr GjA89dKyrwJt0E+/Qc/P/zRZ+4FUNpyXXQS8wk1YxmXDHIhdswCGgWa9+a4YuW5XFSWd t3Nt74452QP+h9C49JCziQ12qlNiuRKhgrnQxcmSH0VAnvyyCsh4ZxIxJZ0jPjOaG6Mf UEGJGB2XkUxpFwR2j8iXlZ5pB2i+jj6EB8eYE6PqjvUKYXiKu6NPpLWAwuSK3NNfsWGE QrjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=1eMbP53AQYdSX0Jm5PD3UOWH21KGytsTOBa67eHjOi4=; b=uWASG5SKCaa/r9JPUe91jnW/uwUg8SRioUlqV9d1hN8+KgObxa773DUPkhOkFpH84D nnkn38uyPSulJOGTUh2Fj3duwr/j4RShw9SUqJkNLtOElw4uA5AjrOxtv3cWQXdJJ8r4 8h3u1ZywvsR7IMiJy0m/IZXYaDv21NButzOfeGBG7b84p/T+6qe7+r0E1E05vtlMCBZq hALZE0Hd0HncuIq6ofPKIfEcYKwDW4qCIcztxgKOsFIcu/bMK43f00Pi3oX8WV9XWl3v kXJ5JSfWEPDkI/lKk90ZKwymrI+5AllMARG/Bm3sFfeqEKRfEDdlNCBRdV3psN9Q1JAN YkIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Vx2vkYsj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b60-v6si10728097plc.610.2018.04.08.20.01.01; Sun, 08 Apr 2018 20:01:37 -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=@microsoft.com header.s=selector1 header.b=Vx2vkYsj; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754669AbeDIAWM (ORCPT + 99 others); Sun, 8 Apr 2018 20:22:12 -0400 Received: from mail-sn1nam01on0118.outbound.protection.outlook.com ([104.47.32.118]:31261 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754576AbeDIAWK (ORCPT ); Sun, 8 Apr 2018 20:22:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1eMbP53AQYdSX0Jm5PD3UOWH21KGytsTOBa67eHjOi4=; b=Vx2vkYsjfZF0Ekpi2dtvQj+ZB1tvJQskew6CjO6wuDUDse/ATVfVDq5QNpAwmpqfogHYZtcvyzN7/N37bqqdH6wXAOGFK7dj3YO9oZ8hXlHFdgAv+aH8KugIjPPsrgyKt5VwKywG1hWi0hutALk1KxrpoVtIqfJ3dougwo0tv5s= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0966.namprd21.prod.outlook.com (52.132.133.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:22:07 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:22:07 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Peter Hutterer , Dmitry Torokhov , Sasha Levin Subject: [PATCH AUTOSEL for 4.14 020/161] Input: synaptics - reset the ABS_X/Y fuzz after initializing MT axes Thread-Topic: [PATCH AUTOSEL for 4.14 020/161] Input: synaptics - reset the ABS_X/Y fuzz after initializing MT axes Thread-Index: AQHTz5h9PwrUfvjjukmxz2fY5z2o4Q== Date: Mon, 9 Apr 2018 00:19:57 +0000 Message-ID: <20180409001936.162706-20-alexander.levin@microsoft.com> References: <20180409001936.162706-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001936.162706-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0966;7:6YEn/gleE4K+cq9y4iu4F38Ya1J+8O3ALRl0IYacuOpL+L3CHaiCxIfVYvRttMIcD0KQlR7a+3N/noz/SMjJdWs+zZ06mhXgHVurcBEDN8q2G685N8Agd3CUyv0T0qP8rRSYKYmJNbSriOzTRAqzyfYyMdEL0OssWLMUT4fw7N4Xclf+E3pMUNkJ38m1J07qeJy+/Jj4ScxhR4LS7OygAFbS0/nByj2Sm0q0hCUUgs4AoxzS+GMyDwysz4BEmTMz;20:k3rtAtrylyG6XOI0I71cLGiDNHu6iKSlnHCi377Oj21cSiI/MMRgoh1teXT2+mTby2/BglhMr3ppjjpj8ZwClAJxvvi6wUTrm65IROLErMejAvu/F1ci7u+IlVZUrRpNZL6vbTwEJaKRZDql5lAJuhJ9OQnruOEnQgaOfZi5XRM= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: a32d4700-03ee-45a4-69c6-08d59dafed95 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0966; x-ms-traffictypediagnostic: DM5PR2101MB0966: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(85827821059158); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231221)(944501327)(52105095)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011);SRVR:DM5PR2101MB0966;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0966; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(346002)(39860400002)(39380400002)(396003)(366004)(199004)(189003)(6512007)(316002)(6436002)(186003)(6306002)(6666003)(2900100001)(966005)(8936002)(486006)(6486002)(6506007)(10290500003)(81166006)(22452003)(25786009)(1076002)(81156014)(53936002)(106356001)(10090500001)(5250100002)(39060400002)(107886003)(102836004)(76176011)(8676002)(66066001)(2501003)(446003)(476003)(36756003)(99286004)(478600001)(86362001)(72206003)(2616005)(68736007)(5660300001)(305945005)(3846002)(6116002)(26005)(86612001)(14454004)(97736004)(3660700001)(4326008)(2906002)(110136005)(54906003)(3280700002)(105586002)(7736002)(11346002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0966;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: wnwfxg7wr6B76RINy8k1mijs0I0ypZngry29Gv7BfC8sAkLRYRNnIibF21IhEHFoRMqdtSKT4uvNdq1qoyDyyvQyv2TYUu2lWJuQf1CL5jDKMPDNuByszvepfNAw/QhamWZcq5jks9UGNpTzQxwfe8trMbF+LDAOeEVNY5xXAGefEL/Y0u4n30zp2kxO+wViIonWpVpfUA601n3gJjPvKEkTfYsksH/58yk5ZL8nV8QQhfS6N6NSOZQ7tiDVf6xaEHVYBzdeHT/U45sE6FXU6AfKEKhkG9S833HsrcjeTwqfQL6OTyUtTyNYWbpXGWVjlZwmRzoNalAfIOPX7wwBLF/uaEgfMIMFG2L1TP0dx4dKwrCxXxiMX2nbHsNqngjoh67nC3GbdksBRqCBGUxJ09JmiF2SqsgQe1YhlhZXyZA= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: a32d4700-03ee-45a4-69c6-08d59dafed95 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:19:57.4262 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0966 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Hutterer [ Upstream commit 19eb4ed1141bd1096b9bc84ba9c4d03d5830c143 ] input_mt_init_slots() resets the ABS_X/Y fuzz to 0 and expects the driver to call input_mt_report_pointer_emulation(). That is based on the MT position bits which are already defuzzed - hence a fuzz of 0. In the case of synaptics semi-mt devices, we report the ABS_X/Y axes manually. This results in the MT position being defuzzed but the single-touch emulation missing that defuzzing. Work around this by re-initializing the ABS_X/Y axes after the MT axis to get the same fuzz value back. https://bugs.freedesktop.org/show_bug.cgi?id=3D104533 Signed-off-by: Peter Hutterer Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/mouse/synaptics.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptic= s.c index ee5466a374bf..a246fc686bb7 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -1280,6 +1280,16 @@ static void set_input_params(struct psmouse *psmouse= , INPUT_MT_POINTER | (cr48_profile_sensor ? INPUT_MT_TRACK : INPUT_MT_SEMI_MT)); + + /* + * For semi-mt devices we send ABS_X/Y ourselves instead of + * input_mt_report_pointer_emulation. But + * input_mt_init_slots() resets the fuzz to 0, leading to a + * filtered ABS_MT_POSITION_X but an unfiltered ABS_X + * position. Let's re-initialize ABS_X/Y here. + */ + if (!cr48_profile_sensor) + set_abs_position_params(dev, &priv->info, ABS_X, ABS_Y); } =20 if (SYN_CAP_PALMDETECT(info->capabilities)) --=20 2.15.1