Received: by 10.213.65.68 with SMTP id h4csp2161189imn; Sun, 8 Apr 2018 21:18:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/6DcwjVANP39d+xXOur4EalnNNDNjr3IF2ZvrOmpnKKQs1eH1/WZWJfEhhiBCo8wcKl5gn X-Received: by 2002:a17:902:b707:: with SMTP id d7-v6mr37564435pls.188.1523247504735; Sun, 08 Apr 2018 21:18:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523247504; cv=none; d=google.com; s=arc-20160816; b=BRBb2X31hYcMuTcXYODEZfWxLgKgZl+FlZ2kSrpclZWe4cHa5Bt33ZU+WFUZ1tveKl z8px4zvvGh7fzNqgohqb4aTsiMj/U73bLbXPBDL6lxZf/f5mF/wrTRSwru3m0cg5OsuV +GJfqEvRII/RP/0aoaV15pY+l6b1O9g88NjYWCBBbmujdhe4AWQaFfCqZlrr+vd15QD+ NtZcbPofAm3QwqhmuEfTOS579UMgXh32XKDvsSLegI83xMcajHnHMoT+ObPtv22nJU1T MskB2jpZ9fSoATa5IZgrCDdRDykiT/qFltoqP2pGJxV1wh70x+td5jGnuVIjvFb145r0 KHlQ== 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=OpPC9QxPpBNXkxIIDBBcF32OZvIwDv+c9ZYPqjVe9C0YAFG8BPDBaPyx21/OTL034J SoyBWdD4gJ7EnDH/Gzu4RShDejlYoJxpG6db/t9nm+DyIIfR/0ANskjjgPrehNMlZZL8 L/aDEiggqo5JphDEtXbZJs0SUT6WhnuXDZ+a+o2LM4X+RSXBInrRGOEUH7zepHxTCi6h 1pFb5f7Sdcpj9dsNCHUUIsWPqDBBxK5aAcOTs3Obcf1mn3Lw2o7Z83CC+CAK4ehA9S1W ArkOxTYy4DsjcEeZ1btOKlWH1OE5ma0bSHNMo7rhKq158bs81p4aHh9xUioh3wIvyAaE p+Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=PoDfYyrV; 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 bb10-v6si2543688plb.474.2018.04.08.21.17.48; Sun, 08 Apr 2018 21:18:24 -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=PoDfYyrV; 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 S1754049AbeDIEIb (ORCPT + 99 others); Mon, 9 Apr 2018 00:08:31 -0400 Received: from mail-co1nam03on0101.outbound.protection.outlook.com ([104.47.40.101]:48974 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753068AbeDIARJ (ORCPT ); Sun, 8 Apr 2018 20:17:09 -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=PoDfYyrVZ7C9ZKglCrtsFD6K8kaK9sVijLOK0lFxcnOaPvq+H6oCdyeeMeKR2ecd/d3ata5vdqzPo29kp+DGHOXGGMJeWKghYAu7k0ArFSkLikZyKYk88sctaSmEI2g5b0Kfwf4/l35cLAiUksfFHRUovZWVECmxpiUittcUZcs= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1127.namprd21.prod.outlook.com (52.132.132.167) 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:17:04 +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:17:04 +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.15 024/189] Input: synaptics - reset the ABS_X/Y fuzz after initializing MT axes Thread-Topic: [PATCH AUTOSEL for 4.15 024/189] Input: synaptics - reset the ABS_X/Y fuzz after initializing MT axes Thread-Index: AQHTz5gWA08neQ0NqEy9YpA+Lz1XFg== Date: Mon, 9 Apr 2018 00:17:04 +0000 Message-ID: <20180409001637.162453-24-alexander.levin@microsoft.com> References: <20180409001637.162453-1-alexander.levin@microsoft.com> In-Reply-To: <20180409001637.162453-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;DM5PR2101MB1127;7:T3t1LIVxt4ogQvEYnjPkM2GvVph7zEH24o7HxPg9dig8nuHJgAc7rgPEa7baN2Aa9e25kDRoljkNQr+82oe9lbaq6zDMA2gn9mHj1bPh59XM6cukLlBgsEXEJ2qRlDjx/V/hI/OB5xiWVtE2atdvCLLVk2J3/WDzMUWEGnnBhxsoYoxfGgVP9zA2bRWl8rFUIYFfnIQ/7I2XYaswLXNF/4MbYHhTevERlz6CgSLuTkbN6g43ojmfR94/Nxt+rwZC;20:uxvYFHODfCs/pk2ZVdgjXCSMiD7vofqwdJU5diYxT1Lrq+wRC5EQPvmldBTXgcnFwCL4JNjPsZq5pO00Gy7OOYHlErlmiel516uZlI5uaHjoBUPFSpGHwGdfzRRAc2niN0ArgvgNcPpJsElZKWh+GA+DagNaVwi8id1hFTrAtZY= x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 84be3156-8d21-46d5-4b6e-08d59daf3957 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1127; x-ms-traffictypediagnostic: DM5PR2101MB1127: 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)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1127;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1127; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39380400002)(39860400002)(376002)(346002)(366004)(189003)(199004)(105586002)(186003)(66066001)(6486002)(54906003)(7736002)(26005)(86362001)(316002)(305945005)(110136005)(478600001)(3280700002)(86612001)(10290500003)(25786009)(5250100002)(2616005)(99286004)(22452003)(5660300001)(966005)(3660700001)(2900100001)(81166006)(3846002)(2906002)(106356001)(6506007)(107886003)(486006)(39060400002)(8676002)(81156014)(14454004)(10090500001)(68736007)(4326008)(6116002)(1076002)(72206003)(102836004)(6306002)(97736004)(11346002)(8936002)(476003)(2501003)(6436002)(6512007)(446003)(76176011)(36756003)(53936002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1127;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: ufvAdm1k5k7EKzLvYnNy0vvEZBH7fvGIkZ08OgC3vAQN271eCFcvVT8DaRLBGU6snTBqF9ZwFCdEp+tj7sB/Ld9ty5wbxmhObhHr7YM15BNBwox0w8l2skp/e3xNrBDWGdxDjVUc6wQX4FzkXw9/gswIkuz4AfgHxiqqv4fgCK8UeJ8Jv2W02Na4sM3hJBqcc2LZiucYAq2mmnEgBwbLJAJH4Px//sBmA7tVDFJIuDCN1mm/YQFUsqbg5kOVH8oytYGWkMb08HYclyIWZgTXS/ivlpiUYhrC48Wfz0cs8o59goZNt4hkzO6uYNERKvWxXpNqNS7t4+Te/hm8NyawF+a6q9aZHMXMGAGwxghzY99AatlMHoCPpKVIHfEHfLfGCw6vV3HGUm6+1OZhI3bNpc53PiFXZTP/RncqKNrV080= 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: 84be3156-8d21-46d5-4b6e-08d59daf3957 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:17:04.8247 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1127 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