Received: by 10.213.65.68 with SMTP id h4csp651946imn; Tue, 20 Mar 2018 11:50:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELvLUCskAJVU0JIFo18blYm5FX3d0qcQStaanGnYixFKyZUuvfMgnX5JkS1lk/FXgfzySGA+ X-Received: by 2002:a17:902:650e:: with SMTP id b14-v6mr15619602plk.147.1521571803834; Tue, 20 Mar 2018 11:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521571803; cv=none; d=google.com; s=arc-20160816; b=Pw4wMnkZxVh+hxNqvODKxeN4n+BAL5gI9LAyLMCH1mGQMpernwkY35kaHxG0FNGyH5 v8ZrYfGhfAH5q9w8fCqyZl5jNjOVEq7yRspOv8jxwJkFFpI7WqkoKn1CzBNeG9Av9Cr4 3hwNj6nFarXSVz02fh/VZlGtWZyMWcnrQnSck27Urrnc4rAQDG7Al8OKdR2+3zryNSkF o7K2U4EBbaf4JGemdltOGDGpmPzfHn3ywI6kWXXXCOBOfzV2k2jL5AVh/FkXhdxcEADd QugaDrvt/8BLruNf+FboyMzUDNxurDnavSlTmYL1V8pV10oS0Z+QQlUzB3tEcUemQGSF Uthg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=ZFSEc6r+LwnLmaP9g1FeHeuUVpUuagjFzfanQFKeZPg=; b=YbksVt48LEjnEOIXK5NI5SGL6gENnFO5DTgvppsnOYHpfs7ZGAAt3gfAxbmnzD546q DInjgwzMTZwdkpoB+wKd6w2UMUNWWy6yQofbDcY+FqFb2EjP0Gmkhb9WCNk0TCLeEvFr giCqaZjuise31VHfPhOAM2YRBaHVhZ84gV7M0JVZfGv1sxqnLuzZrW1TusSNtgK/soHB Ujw3CBN4FJHpbWTggtfHBoP1y/K/1f4/YN3zpeQ4i5k/gS+jieyIk/BdLeGq8y9iFQZR 2u5Rplhnlgiw6AdT9zWv7CDCvSu0V+zZ96Rhb8wALHxgKMO9mKW4K5fGO+0p8da9A4Zy qB4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sTGSWBV8; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3-v6si2201268plb.593.2018.03.20.11.49.49; Tue, 20 Mar 2018 11:50:03 -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=@gmail.com header.s=20161025 header.b=sTGSWBV8; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751522AbeCTSrc (ORCPT + 99 others); Tue, 20 Mar 2018 14:47:32 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:34952 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeCTSr2 (ORCPT ); Tue, 20 Mar 2018 14:47:28 -0400 Received: by mail-ua0-f193.google.com with SMTP id c40so1730700uae.2; Tue, 20 Mar 2018 11:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZFSEc6r+LwnLmaP9g1FeHeuUVpUuagjFzfanQFKeZPg=; b=sTGSWBV8foxcT66xQIa1BQG25Hp1iA/RHVA98m9WSYNSiFrVRB9GIxuIA2HGQVIinb DZh9gd6FBNZIQgqzkdPq/aIT6f6P7Xt905MrJMtNnX6t4pDyasUnjVYmr4i/4uKFmi/o +2jb72CKJbYpkDgCbHtRMhPNt1IEdx3USEXIur/8vOVI79fuMMCAmOuKgY0xml7i9iyT yLcH3+/+Zc2XVdfycJDp0RHx34IOJLceFge0nI+Oj0wpEems0mD/Pn/fb5msGYioOjzz ThRY0HGoB7v6w3cmFmzsW0nMVaUE4midahcu95PVO3g8EbuciuR8s2Yx5i1Gr/x0tktu IJrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZFSEc6r+LwnLmaP9g1FeHeuUVpUuagjFzfanQFKeZPg=; b=EgSmb8OUhICD+EIgam2ZvssghdIQZOWqYFAu3yeF+xrHLC9wfwr3mPjhMBDGWMKyEf pZU7t5AdARSpbSQ1nUTNbiYm/poqZGclTneGgUyiqp2LhNABiJdGikQsmuvVpkd2JetW hBjX0lfz2ZTCVbJbIaoZ7WVNdLQzlaeayQsioVjbcBupDvZK+5IPtmDnFjdKRbU8ZaYA RGs6BsautWlbdIx8Gw0LhXEcmV91TSqQCw2D6Es1/BWW9pCywh7E4uG6heJpxTf/OVz+ J3qZWUE9cwwb0ml17hyb9m0tbOg3+RnHbSBNWEN/yxozwdVNfvkPUVmzsquYXOFV506w 8zbA== X-Gm-Message-State: AElRT7E/muTvowoHN6pxZEc/shlY/Hg7tDPbVOmOVpmu1tyvGKiDalo2 b/MNoHvCMKA8/A4hOzPfASN/I1kHX8Nsn2C+IhI= X-Received: by 10.176.33.86 with SMTP id t22mr2020758ual.149.1521571647023; Tue, 20 Mar 2018 11:47:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.43.4 with HTTP; Tue, 20 Mar 2018 11:47:26 -0700 (PDT) In-Reply-To: <20180129225138.voujq54itw7yblbi@dtor-ws> References: <20171115063404.10066-1-aaron.ma@canonical.com> <20171115083529.jmlpcj4td4evj3xl@pali> <20180129225138.voujq54itw7yblbi@dtor-ws> From: Dmitry Torokhov Date: Tue, 20 Mar 2018 11:47:26 -0700 Message-ID: Subject: Re: [PATCH] Input: ALPS - fix DualPoint flag for 74 03 28 devices To: Masaki Ota Cc: =?UTF-8?Q?Pali_Roh=C3=A1r?= , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Aaron Ma Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 29, 2018 at 2:51 PM, dmitry.torokhov@gmail.com wrote: > Hi, > > On Thu, Nov 16, 2017 at 07:27:02AM +0000, Masaki Ota wrote: >> Hi, Pali, Aaron, >> >> Current code is correct device setting, previous code is wrong. >> If the trackstick does not work(DUALPOINT flag disable), Device Firmware= setting is wrong. >> >> But recently I received the same report from Thinkpad L570 user, and I c= hecked this device and found this device Firmware setting is wrong. Sorry f= or our mistake. >> Is your laptop L570 ? >> >> I will add code that supports the trackstick for this device. > > Sorry for resurrecting this old thread, I am just trying to understand > what went wrong here. Is the sequence of "f0 f0 e9" and "ea ea e9" is > important in getting the correct OTP data and we originally got this > order wrong? It is not clear from the original patch and discussion that > this change was intentional. Could I please get an answer to my question? Thanks! > > Thanks. > >> >> Best Regards, >> Masaki Ota >> -----Original Message----- >> From: Pali Roh=C3=A1r [mailto:pali.rohar@gmail.com] >> Sent: Wednesday, November 15, 2017 5:35 PM >> To: =E5=A4=AA=E7=94=B0 =E7=9C=9F=E5=96=9C Masaki Ota >> Cc: linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; dmitry.to= rokhov@gmail.com; Aaron Ma >> Subject: Re: [PATCH] Input: ALPS - fix DualPoint flag for 74 03 28 devic= es >> >> On Wednesday 15 November 2017 14:34:04 Aaron Ma wrote: >> > There is a regression of commit 4a646580f793 ("Input: ALPS - fix >> > two-finger scroll breakage"), ALPS device fails with log: >> > >> > psmouse serio1: alps: Rejected trackstick packet from non DualPoint >> > device >> > >> > ALPS device with id "74 03 28" report OTP[0] data 0xCE after commit >> > 4a646580f793, after restore the OTP reading order, it becomes to 0x10 >> > as before and reports the right flag. >> > >> > Fixes: 4a646580f793 ("Input: ALPS - fix two-finger scroll breakage") >> > Cc: >> > Signed-off-by: Aaron Ma >> > --- >> > drivers/input/mouse/alps.c | 4 ++-- >> > 1 file changed, 2 insertions(+), 2 deletions(-) >> > >> > diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c >> > index 579b899add26..c59b8f7ca2fc 100644 >> > --- a/drivers/input/mouse/alps.c >> > +++ b/drivers/input/mouse/alps.c >> > @@ -2562,8 +2562,8 @@ static int alps_set_defaults_ss4_v2(struct >> > psmouse *psmouse, >> > >> > memset(otp, 0, sizeof(otp)); >> > >> > - if (alps_get_otp_values_ss4_v2(psmouse, 1, &otp[1][0]) || >> > - alps_get_otp_values_ss4_v2(psmouse, 0, &otp[0][0])) >> > + if (alps_get_otp_values_ss4_v2(psmouse, 0, &otp[0][0]) || >> > + alps_get_otp_values_ss4_v2(psmouse, 1, &otp[1][0])) >> > return -1; >> > >> > alps_update_device_area_ss4_v2(otp, priv); >> >> Masaki Ota, please look at this patch as it partially revert your commit >> 4a646580f793 ("Input: ALPS - fix two-finger scroll breakage"). Something= smells here. >> >> -- >> Pali Roh=C3=A1r >> pali.rohar@gmail.com > > -- > Dmitry --=20 Dmitry