Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2228289ybi; Mon, 17 Jun 2019 00:50:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAbhTdSNeFt5hVkUEc7wZkAK0lSm/VRiM3Q+02EFDddZSQVKxRl0b3hl8VAzdSOKW0HTIn X-Received: by 2002:a62:7552:: with SMTP id q79mr93189284pfc.71.1560757853916; Mon, 17 Jun 2019 00:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560757853; cv=none; d=google.com; s=arc-20160816; b=NPQRm+6fj1QwOrDSrZzrw5h38ur0tO9VeaCnA08QC764EyTYdT6v29qa6bn/+/qdsR lvDaEfgiWSrM8BFOTeNqeiqQPeg4p8oL5VptLFt/fhKI/M1VJUUcrzB/+FUmFylecRF7 fvZ8yn5MDYZJ0e8plnrG+A3/LJuuC7Gx7IxLPxHwZCq12di8VMUP1mZwuJ0FzRNy9Khh dp6wr+r3E0VS7Avp2yNt2iJ9c9c4O9iuENcCT9+o/G5hV+bdr54CApAJJocmbh9B+EPX z9tSvIKQ1x+MAi1TL452fzr8JQom+yiss381fxk0G2xUp4R+Jzi8aOdSpN6HkcHWF94y z44A== 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=ecxsfTM1O8CKKdw9Vc/9zWwPWgptCwlbrFnJVkz7unQ=; b=VW3gqjWZZAARAxXLNtPP3zr72QdjcdS/IQ9RAC3ipp6hJ02kYuRrEEAstsgyMhBsbM 6XXdpC8lGxHXAXEdR1kpNE9jqFAC/ALKCBy92Y+NtQQZpqe7zPFRLaPa8xxZwXChy8db j1Eh357hdabvyInoblftjQsGaZZ36a7+h2JTmrrH6dQ/y2TMKIm16/Qhtm0DDwKII3lL 52a7+u0lpKOaUjKtCmtxAhxMLRRlqcvApy4ZBiwKAfKSpYHyhIpnf3nK65lMWv6vQwJP uXLb3vHUI4HZcc1Uhf/dvEgYndhCLxv0SXxoVvC+7qrGdFGjvDE0T7MnL2w4DE+5ca9M 6jIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=btSh5wd9; 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 w185si10136427pfb.170.2019.06.17.00.50.38; Mon, 17 Jun 2019 00:50:53 -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=btSh5wd9; 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 S1727059AbfFQHtH (ORCPT + 99 others); Mon, 17 Jun 2019 03:49:07 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:50536 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725983AbfFQHtH (ORCPT ); Mon, 17 Jun 2019 03:49:07 -0400 Received: by mail-wm1-f68.google.com with SMTP id c66so8113533wmf.0; Mon, 17 Jun 2019 00:49:05 -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=ecxsfTM1O8CKKdw9Vc/9zWwPWgptCwlbrFnJVkz7unQ=; b=btSh5wd9OLKwytZGLnP5yTUJ1BmMecFoTjQVt2rq0ZAkKcNSfBKxX1PVvxRxcqaPd6 7Ev+aq6hiJUIejkfcMtXEDIt3ISJSRm30hCpt8mA+CM5US1flrmPESSwPit8Qjhz5VTq VlZrQTkC4sFEgTTtDYkVJk9OHpC7cOFvO+OA3EkSeQlhXolZV4qiXTFFbuvkaVHH4a/f zVUyNul3zTfGafCiSvCkSNJTjWsh35furXGBljnLg50mpod1zIf7JaIuivEUsN7njwAR snilYB5tr6YOm3BDUVlJzCyRlCdampINOrOlHaQQNbt4/GIC160my5dg4G4XqMbofMc6 GbxQ== 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=ecxsfTM1O8CKKdw9Vc/9zWwPWgptCwlbrFnJVkz7unQ=; b=F1GWqvSU4yPtV4zih/FPl7Guck7Pe9GTPxSszCyEtOJ8qZsLY+qlCDAGgxmHyDi0pq sQu9HtnxkUL6XnBsdjU4VmLnomvP8od4eXRD+1MJrcnGJNUv5G4Na7cT9Tszvb3PMh3Y 6+0fUKTMllvmDNl2iIYxJBYQBE4NjAt8ARQOl8yUVXUIZF8SeMDqsHJxGo7X1sM19Bsa dl5R8/3kDTjYoWD5LEwZJMhdjuN8nz+YtnKwaJ25+HkZgDWkrzK9gbdXa10LYQ/DF9AX Qy30VCyq+LA/SKhveFM3JEoWWCG37vWKCfCVvchIrmH+KENb8blAjv/92UBOehgm2Apf +x8A== X-Gm-Message-State: APjAAAX6nVc3Y24Txs9CrzWg/tANJRlRcsrzC6ZUioTinl3PBk5AJfN3 jwmvkb2i0eKkVMxLePUz12U= X-Received: by 2002:a1c:a783:: with SMTP id q125mr18170543wme.94.1560757744396; Mon, 17 Jun 2019 00:49:04 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id q20sm26811438wra.36.2019.06.17.00.49.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Jun 2019 00:49:03 -0700 (PDT) Date: Mon, 17 Jun 2019 09:49:02 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Xiaoxiao Liu Cc: "dmitry.torokhov@gmail.com" , Hui Wang , 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?5aSNOiDnrZTlpI06IFtQQVRDSA==?= =?utf-8?Q?=5D?= input: alps-fix the issue alps cs19 trackstick do not work. Message-ID: <20190617074902.bg2emodbmjkkfldd@pali> References: <20190610104310.qa5snt7jpcljodfv@pali> <5587ddb9-fb5f-03db-ac11-a696c85c5f2f@canonical.com> <20190611072333.nd4va4q2m5epmukc@pali> <20190611170707.GA143729@dtor-ws> <20190611171707.tydk7rsmtzmjohky@pali> <20190611173228.GD143729@dtor-ws> <20190611173856.jjwoagud6doxvpy3@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/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 17 June 2019 01:29:17 Xiaoxiao Liu wrote: > Hi Pali, > > Since design architecture change of CS19, input device connection has been changed to below architecture, > Touchpad has been moved to I2C connection. > > kernel/host <--PS/2--> EC <--PS/2--> external PS/2 mouse > | | > | <--PS/2--> trackstick > | > <--I2C--> Touchpad Hi, thank you for explanation! So in our case, ALPS device should not be put into passthrough mode as there is no device after it. > In the past TrackPoint does not show in the device list because of TrackPoint was hidden device of Touchpad. > But from CS19, TrackPoint is directly connecting with PS2 port, > 3 bytes packet does not need to take affect by other vendors Touchpad format. > So alps.c is no need for CS19 device. So if trackpoint.c driver is working fine with this configuration, it is just needed to instruct alps.c to not take this device. > Best Regards > Shona > -----邮件原件----- > 发件人: Pali Rohár > 发送时间: Wednesday, June 12, 2019 1:39 AM > 收件人: dmitry.torokhov@gmail.com > 抄送: 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 > 主题: Re: 答复: 答复: 答复: [PATCH] input: alps-fix the issue alps cs19 trackstick do not work. > > On Tuesday 11 June 2019 10:32:28 dmitry.torokhov@gmail.com wrote: > > On Tue, Jun 11, 2019 at 07:17:07PM +0200, Pali Rohár wrote: > > > On Tuesday 11 June 2019 10:07:07 dmitry.torokhov@gmail.com wrote: > > > > 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. > > > > > > The main problem is that proposed trackpoint-only check in alps.c is > > > basically what trackpoint.c is doing for checking if device is > > > trackpoint (via function trackpoint_start_protocol()). > > > > > > So I'm not sure now what is the best solution... > > > > Unfortunately currently trackpoint is being probed only after we tried > > Elan, Genius, and Logitech PS2++ protocols, and I am not sure if > > moving trackpoint around will disturb them or not. > > > > I do not think there is much code duplication by pulling limited > > version of trackpoint detection code into alps.c and then have it bail > > out when it sees trackpoint-only device so trackpoint.c can handle it properly. > > Ok. Seems that it is the best solution. > > The last question is, should be use ALPS or Trackpoint protocol? Because it looks like that device can be configured to one or other. > > What are pros and cons of these two protocols? > > -- > Pali Rohár > pali.rohar@gmail.com -- Pali Rohár pali.rohar@gmail.com