Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4659566ybi; Tue, 11 Jun 2019 10:15:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjP0vz5vQnNTZtvNBwjeNpNbOK8AZI8QihkdIUE1Z1ZHDGmtyppbHZLLL2JjbETeJtdwO1 X-Received: by 2002:a17:902:24d:: with SMTP id 71mr79026842plc.166.1560273302361; Tue, 11 Jun 2019 10:15:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560273302; cv=none; d=google.com; s=arc-20160816; b=foBbBZLjjt0gQzyMkkBLN3At/G086H+OW8wPb4i5NWGQrTy5Mo+5uiMmW+0eW08FOX pyH2jdh+/QzW5v2bMpHQ6byaU60hw2UuW/7Uu2h2WzkbqgzneCzVmIYpcsQ88Iw2SzFp DrYjEpgSMhBRIU8om8IZVwdBzUFp2xCy4GV2R7Sy0WwoRBwzTYC+6+UbdUwzsYGcpD5x AMdPMQhSck831xvetaFAdcE2F/o6DZpaWiIrQsffY3HQV3lSqW2gNpc3+yXalBnxEAsg dKQtsLPtkjwQxU+d2nYRjLR5mA6MEp97sIEeOotCgethQ3sosUuH9VNz6ZU4uHfRwra5 rGhg== 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; bh=7aH25v3Hx1NMUvytzU1QVg/6VVIQIlEQHF1pCamcBQ4=; b=POiF2XzPN5NCW1+dXU0SK4YvPkCq5yjSzZlOzbgXZMMy2GCcVR/N/9LOm7k8okdnUS rJZsU1jzNketGH1xiDu/PAip/VUdkEXbf5KkaxB+eFxXtay33s4IUe7pBYUk40cgkY5M iLtJK1tjBFJV7ArwqZnmbRzg17y2qfxhLNsznt6u0LQENUxPbI1AQGNT7F2BeSY7M9GO lsAtAVYeJOLK6TTpk5zyi5ouboxyfbA2vYezlGVzibopm9+aNRStkBI/U2CbA8jEBi7+ lj94vetRuQgQLvitR2IWSAIxcsLTLeCx4awZHsMYbxcFWpn8v4qkqgdB5EdDANhkSXAB MR/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fskelMiu; 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 s19si5331664pgj.573.2019.06.11.10.14.46; Tue, 11 Jun 2019 10:15:02 -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=fskelMiu; 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 S2405840AbfFKRHM (ORCPT + 99 others); Tue, 11 Jun 2019 13:07:12 -0400 Received: from mail-pf1-f181.google.com ([209.85.210.181]:40926 "EHLO mail-pf1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405356AbfFKRHL (ORCPT ); Tue, 11 Jun 2019 13:07:11 -0400 Received: by mail-pf1-f181.google.com with SMTP id p184so4524503pfp.7; Tue, 11 Jun 2019 10:07:11 -0700 (PDT) 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=7aH25v3Hx1NMUvytzU1QVg/6VVIQIlEQHF1pCamcBQ4=; b=fskelMiufq6DZGC/0bzKmWAptQbp84iH3H4HUD90gku5UFv2OXuClzXAubyulmk3OK zpBUsRzGZJ4tVK2S6Zql/amqp/jPm/5fKlH7isLRQtPlzTFsn2EYexvgcK4qabMwRMAv BpeEuZowx1MGgmfW5vN4VfQw5rcWyhdC5A7UTL/VkrML8sw5N0c3X41Y8qdCuhBjWtqL zBjcI0nGSCgOtk7GoIisdh1fAqG206JRwtIsbL0vvAGg8+yJSJnRZfxCb6C1vCpBI4Cw xz4C7gSRhyHWpmOQgwEpCO3YQmG3f8nEheKxIOZOlSJmxIdscCabcHRwyj1HbsmBYbtG gQdA== 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=7aH25v3Hx1NMUvytzU1QVg/6VVIQIlEQHF1pCamcBQ4=; b=r/tQGVvMLVsdeIbib5VYUhLEQ7TIPw2YV7CC+UcbFr0UyTwpx0dTq6RZrqi++diH95 jpoo3hw+aL5IyBK6uanNiPapkda9qVG6hTyTADhSZiiPCXv7W3lPUlwZPCM4Oh6jhUCs ZZA9dq6GwSJQGQ82gwrwmzD8N6MLe2ce77pJQ+UGteWup88lfxVRJ8u/GAz3vd3uOzU/ 79sit1iov6TkMO/NY0rO9VjqOJf5jSAzX0kf4DxPQomnQEiRYOs64E0SzxeCHH+MYOpi EnoKc0iIPwhARubeRh6ghECOi9fS3gc6oNe65YVuWtn26dcPiXCrytDmHkYJo3XwRkww xt5w== X-Gm-Message-State: APjAAAU4ztIx9nvLra6QQuwybqWk2sxaz+vdF71rFBwwNse2qT1VEv+k MAmA2Vk4DDEwi2dh0rt1RnE= X-Received: by 2002:a63:2a06:: with SMTP id q6mr21027443pgq.290.1560272830202; Tue, 11 Jun 2019 10:07:10 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id t26sm2787341pgu.43.2019.06.11.10.07.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 11 Jun 2019 10:07:09 -0700 (PDT) Date: Tue, 11 Jun 2019 10:07:07 -0700 From: "dmitry.torokhov@gmail.com" To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Hui Wang , Xiaoxiao Liu , XiaoXiao Liu , "peter.hutterer@who-t.net" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Xiaojian Cao , "zhangfp1@lenovo.com" , Naoki Saito , Hideo Kawase Subject: Re: =?utf-8?B?562U5aSNOiDnrZTlpI06IOetlA==?= =?utf-8?B?5aSNOiBbUEFUQ0g=?= =?utf-8?Q?=5D?= input: alps-fix the issue alps cs19 trackstick do not work. Message-ID: <20190611170707.GA143729@dtor-ws> References: <20190528071824.jimhixhtsynzwixe@pali> <20190610104310.qa5snt7jpcljodfv@pali> <5587ddb9-fb5f-03db-ac11-a696c85c5f2f@canonical.com> <20190611072333.nd4va4q2m5epmukc@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190611072333.nd4va4q2m5epmukc@pali> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 11, 2019 at 09:23:33AM +0200, Pali Rohár wrote: > On Tuesday 11 June 2019 12:32:33 Hui Wang wrote: > > On 2019/6/11 上午11:23, Hui Wang wrote: > > > On 2019/6/11 上午11:05, Xiaoxiao Liu wrote: > > > > Hi Pali, > > > > > > > > I discussed with our FW team about this problem. > > > > We think the V8 method means a touchpad feature  and does not fit > > > > the CS19 trackpoint device. > > > > CS19 TrackPoint needn't  use any Absolute (Raw) mode and is usually > > > > use standard mouse data. > > > > CS19 TrackPoint device is a completely different device with > > > > DualPoint device of Dell/HP. > > > > CS19 TrackPoint device is independent  of Touchpad. (Touchpad is > > > > connecting by I2C, TrackPoint is directly connecting with PS2 port.) > > > > And it has completely another FW. > > > > > > > > So we think it is better to use the mouse mode for CS19 trackpoint. > > > > > > Maybe here is some mis-understanding,  the mouse mode here doesn't mean > > > we use psmouse-base.c for cs19 (bare ps/2 mouse), we plan to use > > > trackpoint.c to drive this HW, so this trackpoint has all features a > > > trackpoint should have. > > > > > And I sent a patch one month ago to let the the trackpoint.c to drive this > > HW: https://www.spinics.net/lists/linux-input/msg61341.html, maybe that > > patch is reference. > > So instead of creating blacklist, you should check for TP_VARIANT_ALPS > in alps.c and disallow its usage. > > Or maybe better, move trackpoint.c detect code before alsp.c detect code > in psmouse-base. And no changes in alps.c are needed. I'd be very cautions of moving around the protocol detection. It is very fragile, so if we can detect trackpoint-only case in alps.c and skip on to trackpoint I would prefer it. Thanks. -- Dmitry