Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4174812imm; Wed, 30 May 2018 00:04:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLylWvuO+B8BJFXYy8vgLbCV5YCdrNxxbk5EK+Y2jVRlLMNRrR5gcWdsSxOW/+sJk+oxjtL X-Received: by 2002:a65:4289:: with SMTP id j9-v6mr1281511pgp.136.1527663872318; Wed, 30 May 2018 00:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527663872; cv=none; d=google.com; s=arc-20160816; b=fyBWsFm07JwydDUG+gSuJF3LhgkeTBNUf7FuyMFnCQDnexbq3jm96PAx+jwSROUaLx AbJBt6BjPl/5PuWLfnY8EhNP+fcnXWCbZFT8pi/cU0c1BTkxmaklQWkjg2YqSpdtnOHn YP649M4OuTqexfVXbys+2FG7rbmx/5LLD1rvU5v/5/bxbxvumwfnRSxLGGy4PCZwNnjh vkz77xiwgkwdIEFjWSZFB0NhrC5OHqJYImFy5757o0/fufPRjJAtpqWjgIVfjxUGp960 S5ReacgJ7QSl+bg4q6nt9Wg0o1Onc2N21Erfdmgy3cjlyHm9jorXSgZHbFW8h64sNdSm OuTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:arc-authentication-results; bh=GXn/vKzwQHcM6huUqCUbS1kwS/qyKqJQ+5esriBjTS0=; b=iHCF90SdoSdEnSoIHbHrt8Ug7FuQ164ZP4RPpqp78aZ3ppmLtKiZxQA0udZ0Vixzuo EErxhsAXEzVYixLxZv1SXBDcQNJG5lFRbFGKp5AiciJrsfePKKLDh+1I3a27qCaeJjed tD1U3fsjvQqaaaqF177Kgy3fiZ2WcH47c0KMdqiCcS1wuILsDE8ng0pDevpWtycm6ZsV 82LdZz2ifeibH6gSKBEdqbDFMmuHpEl5J0uG1OQHvLPn8VeXU42DzowyJzRHUsP/zmxh 9DCxkiXHrbOb6oxizu8hZykOeHoPTxBaKyxpUVQvOqfgDyTpcULWXgcdmQtu3ZqyAHT5 Db0A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7-v6si33101336plk.293.2018.05.30.00.04.18; Wed, 30 May 2018 00:04:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937196AbeE3HDx (ORCPT + 99 others); Wed, 30 May 2018 03:03:53 -0400 Received: from emcscan.emc.com.tw ([192.72.220.5]:55240 "EHLO emcscan.emc.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935905AbeE3HDv (ORCPT ); Wed, 30 May 2018 03:03:51 -0400 Received: from unknown (HELO elanic) ([192.168.10.6]) by emcscan.emc.com.tw with ESMTP; 30 May 2018 15:03:50 +0800 Received: from elanic (elanic.emc.com.tw [127.0.0.1]) by elanic (Postfix) with ESMTP id E40413CA956; Wed, 30 May 2018 15:03:45 +0800 (CST) Received: from nb92073 (unknown [192.168.33.46]) by elanic (Postfix) with ESMTP id CF97B3C9A20; Wed, 30 May 2018 15:03:45 +0800 (CST) From: =?big5?B?ufmxUrph?= To: "'Dmitry Torokhov'" Cc: , , , , , References: <1527507182-3858-1-git-send-email-kt.liao@emc.com.tw> <20180529180506.GB167092@dtor-ws> In-Reply-To: <20180529180506.GB167092@dtor-ws> Subject: RE: [PATCH] Input: elantech - Fix V4 report decoding for module with middle key Date: Wed, 30 May 2018 15:03:50 +0800 Message-ID: <000301d3f7e4$5c9e51c0$15daf540$@emc.com.tw> MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGXKDSa603eNY0ATMXG8YhRn9eLDQGq8paHpLQcqrA= Content-Language: zh-tw Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, -----Original Message----- From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com] Sent: Wednesday, May 30, 2018 2:05 AM To: KT Liao Cc: linux-kernel@vger.kernel.org; linux-input@vger.kernel.org; ulrik.debie-os@e2big.org; phoenix@emc.com.tw; aaron.ma@canonical.com; josh.chen@emc.com.tw Subject: Re: [PATCH] Input: elantech - Fix V4 report decoding for module with middle key Hi KT, On Mon, May 28, 2018 at 07:33:02PM +0800, KT Liao wrote: > Some touchpad has middle key and it will be indicated in bit 2 of packet[0]. > We need to fix V4 formation's byte mask to prevent error decoding. Could you please let me know what devices this patch fixes? Are they released or new hardware? The primary target is Lenovo thinkpad P52 and it will be released in 6/M. force_crc_enabled will fix the issue too because less bit-check in the specific byte. I guess Fujitsu H730/H760 in elantech_dmi_force_crc_enabled may have the same issue. I leave them in DMI table because I am not sure of it. Thanks KT > > Signed-off-by: KT Liao > --- > drivers/input/mouse/elantech.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/mouse/elantech.c > b/drivers/input/mouse/elantech.c index fb4d902..f39dc66 100644 > --- a/drivers/input/mouse/elantech.c > +++ b/drivers/input/mouse/elantech.c > @@ -799,7 +799,7 @@ static int elantech_packet_check_v4(struct psmouse *psmouse) > else if (ic_version == 7 && etd->info.samples[1] == 0x2A) > sanity_check = ((packet[3] & 0x1c) == 0x10); > else > - sanity_check = ((packet[0] & 0x0c) == 0x04 && > + sanity_check = ((packet[0] & 0x08) == 0x00 && > (packet[3] & 0x1c) == 0x10); > > if (!sanity_check) > -- > 2.7.4 > Thanks. -- Dmitry