Received: by 10.223.176.5 with SMTP id f5csp3537407wra; Mon, 29 Jan 2018 14:53:51 -0800 (PST) X-Google-Smtp-Source: AH8x226PURWJ7Fnz5AxX1cdNcrb73BzYFHUGCSFgSNuMfkUir9tRJLa2ci3HUnwdnZrghMEP88ij X-Received: by 10.98.223.196 with SMTP id d65mr28740692pfl.176.1517266431445; Mon, 29 Jan 2018 14:53:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517266431; cv=none; d=google.com; s=arc-20160816; b=l4t0e6TbXGlT55PXxjhxrvUN8QMWZC2acO/EUowdQJzeCWwgManEWrbOVOQuIZ1YdS ORPZtGpsrF9iqad72RTOt9YZyrzHy/GYLzPz08IbBcIPiEgCgsjHdOq1I3EwZuaDOKtw hzx5PlXj1KXIXc5/U1lF4sLgAb0v513yeZYUv61OkX9laSNVDggYdSHABfyAzTzcdwRr 3PPzCkGXsaAmolE0CnxzdyHZ1+4TNljQItO6/3l7HVXnIH5ywEBFhHqlcu7Xe86likeV ByMis49iWyv9NgITeH4laqvBSHjmjEpPH4nHFYGMY+8R239G/dDuuBRdb50Cxeq+3zm7 lokA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=h365jk7qM4eTQ/by0TsYZxST4MUCITtRc7TvRmk2z/M=; b=Bc+ZGKBkce9niB3kNFZvdx/ahbRKDOZswxz3MYr6+bYFFhkTd85G4lJIx0p8dOjw4u s6GEO178Vklh7BHB7myubhKpcV8RDoAkgO1ZZbtoMpdFBiB67nm9i83KswtTcTSeza3O swlwVc4Br4TDDHN0r9jHwuLwxeIu2+p7hnRIWAwEYNbtBUFyMsD9IKOCR5rd2a07jjEY 0oqbDWVJykruCG+Ce6uerHTQ8Iz7SfOIFgpqX9wje9omNCrpNIdsE2ITLHjFPqjW3I8A c8ste0By6/OdLNApmqk86uIvV1XC/YmXqOdsAuMYKxikFvBjshSXftqxsf5PbNhVRRyt dCng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LB3DjSC/; 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=NONE 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 t5-v6si10435344plj.345.2018.01.29.14.53.36; Mon, 29 Jan 2018 14:53:51 -0800 (PST) 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=LB3DjSC/; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751576AbeA2Wvn (ORCPT + 99 others); Mon, 29 Jan 2018 17:51:43 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:45401 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbeA2Wvl (ORCPT ); Mon, 29 Jan 2018 17:51:41 -0500 Received: by mail-pf0-f196.google.com with SMTP id a88so6773722pfe.12; Mon, 29 Jan 2018 14:51:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=h365jk7qM4eTQ/by0TsYZxST4MUCITtRc7TvRmk2z/M=; b=LB3DjSC/rp6ADG43F4YcJBHkZuaCbn2dMR/43V7j3UsbCN8Yn0Y0/BfdfZ5f1OsHLY u1gT060pvVQGG1EwP3oeTgwx59wM0VsUyFTc991boAEhb5ykxwRXjhIaq78p559AOplX +q5POljnysKTeklc5QozY9U5ueslAHg/7fHEld2CQNuICNWnbkXBtNxxzcuKf8/EZWBn d7JYqd2kzxw82kO4XQxjpTOKL2kf8b1m8HqkcLfqNniWUjQSqH1lAYWSUxeD74UnRrQT tKBGDvOt6nv6uRt4fxHZbtLpvWOUmCDrpAYGB+JQLokWpD9OsCOKjq8A11FeHt90bEy+ 0gXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=h365jk7qM4eTQ/by0TsYZxST4MUCITtRc7TvRmk2z/M=; b=qR6dYPVilnxJu+VJMpd1j7Jr/pqq1aGPvDSUfi6mlM2rClENGAMoJPUwF730i78HhY j524eA37AKlI5JiH2WrJPWDnEj9cp5cT+jojubCEt+6oV4x9JHhhOSg23j3vX39IJev5 MXKJXMpVA7hAjsPR7m2P5p5xmipg8OJiXJcOV62w+/rPre0Z4Am1neqGTjfvKuacM2/d yE2/3GWTacYArLD3vkGt2IYjYsJs9lvaBiWgRaFyRCCzdORZBYb3FUQM9ljxTCb3azwk ryX7uEfdcSRh4ivhDeasSs4SwQVk86giVzCBxAEHWf0W1NFU9zTOBYhPcjZbpiEEgqqb AKZg== X-Gm-Message-State: AKwxyteCAS9eIZ1n3/QQRaa5ppd+O5vkiuZf4SZ+aGGEFjRcAhMbLZ9B Ifp1MNdWE8AJPJi/hLipOIA= X-Received: by 10.101.90.71 with SMTP id z7mr22448056pgs.15.1517266300766; Mon, 29 Jan 2018 14:51:40 -0800 (PST) Received: from dtor-ws ([2620:0:1000:1611:da80:8749:c06f:9515]) by smtp.gmail.com with ESMTPSA id 14sm29636957pfi.132.2018.01.29.14.51.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2018 14:51:40 -0800 (PST) Date: Mon, 29 Jan 2018 14:51:38 -0800 From: "dmitry.torokhov@gmail.com" To: Masaki Ota Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Aaron Ma Subject: Re: [PATCH] Input: ALPS - fix DualPoint flag for 74 03 28 devices Message-ID: <20180129225138.voujq54itw7yblbi@dtor-ws> References: <20171115063404.10066-1-aaron.ma@canonical.com> <20171115083529.jmlpcj4td4evj3xl@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 checked this device and found this device Firmware setting is wrong. Sorry for 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. Thanks. > > Best Regards, > Masaki Ota > -----Original Message----- > From: Pali Rohár [mailto:pali.rohar@gmail.com] > Sent: Wednesday, November 15, 2017 5:35 PM > To: 太田 真喜 Masaki Ota > Cc: linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; dmitry.torokhov@gmail.com; Aaron Ma > Subject: Re: [PATCH] Input: ALPS - fix DualPoint flag for 74 03 28 devices > > 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ár > pali.rohar@gmail.com -- Dmitry