Received: by 10.213.65.68 with SMTP id h4csp35400imn; Mon, 19 Mar 2018 18:41:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELvGk+Qq6p5an13RFJbr4khVZd+VNDhTwC+399iZWuXXdWYaDou37COSeJMgiy0myI/Ety6j X-Received: by 2002:a17:902:8a92:: with SMTP id p18-v6mr14299708plo.286.1521510091854; Mon, 19 Mar 2018 18:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510091; cv=none; d=google.com; s=arc-20160816; b=iCtVPPJ5cxqph9di5hEVtzC9Y6S1JssCVraS+R0Kx8HOlQlfJcpP1pzFQj+CAQRV6m XPaxq+Jv8pqIpOFjyvTLsqlCKAFao2/7wnv/Xoji+vPw6ILzaWL52rvPeXPly+KCVQum g9wGhDFfB/XYSUvq8cxb3/NJwkJd/ehEKLbDPFlm08ZPpkJbTp5WJhFd6Q7x7YwjNod3 lM2m6LNNkAgatE2wiRomYRbUI9BbN9gAZudUWT7yBVCY4oj+Kbem6xpvPToEeb+NGMjr c5/C8T5FFAjaubsSSUMj0WG0gT2byNa+2toxJcr10vkIZKuFy2Xya9mAmIXtRsIe8Z0h UUdg== 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=n2mGprcT+5yMdJDhZ+wH3FpYDwfGOHhtk3EhxEThNGA=; b=ysu5puZJITgF1+KgMwzwR1VZPACn2AZGe2+Dh4KWvjkbGIXHZ6iDMtabsn3MNQ6uax GvjjSgZ21qfuxRgaASVBuLp9t+SEs5nKFkefUK5ggSHkxkyg1OS0k24MWPBecAjFS6jC fLpfLw6R73tSgJgnUCznwOAZ+DqdYI2JKJk2rb8Ad2paNBZWXHrLLL9Gh7hOHRQrxL8H 5iamoAMzhq98WI2ZnMwrWpjdU4JxXa0EideOMMxdNvidvM3FopzRzh86ISXZ5G1C1WPe 6jtOlYrjKcsqBH2eshWCgQyOBLFBWrS1LfykjGINKEFmPgVL0R+t93RlboaCmOH35F2K n/FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=TWc2S0tg; 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 k6-v6si563371pln.103.2018.03.19.18.41.17; Mon, 19 Mar 2018 18:41:31 -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=TWc2S0tg; 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 S968030AbeCSRb1 (ORCPT + 99 others); Mon, 19 Mar 2018 13:31:27 -0400 Received: from mail-co1nam03on0114.outbound.protection.outlook.com ([104.47.40.114]:10656 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965999AbeCSQHA (ORCPT ); Mon, 19 Mar 2018 12:07:00 -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=n2mGprcT+5yMdJDhZ+wH3FpYDwfGOHhtk3EhxEThNGA=; b=TWc2S0tgEpbuWDV0fzi3lnJJdh4SS2OiIkFU+P2C3Kp8hoCExSbSH+VOdMMF+WqxSfzn2HBbRcaZQCJ+yKRp41jJrw5aqxQUtODgkN9GF/KSTB+tXONLcd+TMEbx3s+mH1/FNan8TrMSN7oUBiY9cK/ucPSdRzRfMFVpeV27nls= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1093.namprd21.prod.outlook.com (52.132.130.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 16:06:53 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 16:06:53 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: KT Liao , Dmitry Torokhov , Sasha Levin Subject: [PATCH AUTOSEL for 4.4 025/167] Input: elantech - force relative mode on a certain module Thread-Topic: [PATCH AUTOSEL for 4.4 025/167] Input: elantech - force relative mode on a certain module Thread-Index: AQHTv5wnL9uVVUKGP0yYK6MQrbuMxw== Date: Mon, 19 Mar 2018 16:05:52 +0000 Message-ID: <20180319160513.16384-25-alexander.levin@microsoft.com> References: <20180319160513.16384-1-alexander.levin@microsoft.com> In-Reply-To: <20180319160513.16384-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;DM5PR2101MB1093;7:gTfhNXFoeogpuifT7F/fmYT5njy7nutJuKOTJCMHMSt10EepD59LUoQwXH4ktVK0pZ7pEP0FKfMfqLyxtyPr/HoethDbc4L/eLD3nDeQKxVzZT1tY52kvwK+AIdqNAAaZulN2I5j0uw5hQcd2IW3tFtaZoUmlDzashqPW8ncXqYJz6oOp7JJFKH7Gql/k+YU5ExaOWsj5U+XwcBL0F5+ZbeeGfGIdB1A81vrQB8hGtO2cMSzW1rlmzRaE3g23R/2;20:0rSl/8Dt8bk+7b/cHexg9swzaXLMnz0OFIVIHb+KvtfEBvkYFWwdWUenvjgwB+cDaheLxWHKwDFjm32xy7YKIyiAX5yx1QYaSNaTmpXk0OmXuTXGHp4QmXqz89xXxeE/p2UX3RE1qbn4fOlsaCPUGmZx5e20hbqmYp3/mPWvF6M= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: aac2b7a6-df46-4565-78c1-08d58db36e32 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1093; x-ms-traffictypediagnostic: DM5PR2101MB1093: 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)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB1093;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1093; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(396003)(39380400002)(366004)(39860400002)(346002)(189003)(199004)(10290500003)(68736007)(478600001)(110136005)(72206003)(36756003)(99286004)(97736004)(10090500001)(305945005)(7736002)(76176011)(107886003)(2950100002)(39060400002)(6436002)(86612001)(6486002)(4326008)(54906003)(186003)(3660700001)(25786009)(26005)(2906002)(53936002)(575784001)(5250100002)(2501003)(81166006)(81156014)(2900100001)(86362001)(5660300001)(8936002)(1076002)(8676002)(3846002)(3280700002)(6116002)(66066001)(316002)(6506007)(14454004)(106356001)(6512007)(22452003)(105586002)(102836004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1093;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: dENVIBC6Z4kQ254MkoVM/lwy4jgbSwbHyJkdE89gW6zel08fig/ArxLSsOQtdqDV7UZ7CAFn3u5c7No2l2EedK4JDuto6L5T+9eEqzzW91NM0Rri1CJDxPquBN49qG+RS4YyCTR74QzSfdSvguVAweOfnLZk+U4GO9gc8ZypY/I9gckgLHDC10fnL1RdkoZ/uNez2iCWon69aIcAiCsqRp73Cag3PuzSiWSdVYzra5E2/DieHC1sk+zRjOJxpgtTM4f/RB8S0UJcZSqcZp2nvjEhqzgvFCGvQm5sUvCM1qkhXsgDzv3Hz8fkKdNYEVYwfwCAaJGdkCUmMozlWemDjQ== 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: aac2b7a6-df46-4565-78c1-08d58db36e32 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 16:05:52.3086 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1093 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: KT Liao [ Upstream commit d899520b0431e70279bfb5066ecb6dc91d0b7072 ] One of Elan modules with sample version is 0x74 and hw_version is 0x03 has a bug in absolute mode implementation, so let it run in default PS/2 relative mode. Signed-off-by: KT Liao Signed-off-by: Dmitry Torokhov Signed-off-by: Sasha Levin --- drivers/input/mouse/elantech.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.= c index 51b96e9bf793..06ea28e5d7b4 100644 --- a/drivers/input/mouse/elantech.c +++ b/drivers/input/mouse/elantech.c @@ -1715,6 +1715,17 @@ int elantech_init(struct psmouse *psmouse) etd->samples[0], etd->samples[1], etd->samples[2]); } =20 + if (etd->samples[1] =3D=3D 0x74 && etd->hw_version =3D=3D 0x03) { + /* + * This module has a bug which makes absolute mode + * unusable, so let's abort so we'll be using standard + * PS/2 protocol. + */ + psmouse_info(psmouse, + "absolute mode broken, forcing standard PS/2 protocol\n"); + goto init_fail; + } + if (elantech_set_absolute_mode(psmouse)) { psmouse_err(psmouse, "failed to put touchpad into absolute mode.\n"); --=20 2.14.1