Received: by 10.192.165.148 with SMTP id m20csp3992417imm; Mon, 23 Apr 2018 16:44:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx49hzNaq31jKQHGy44kMKqc16PQaYaso8vI3Dq47WfHr1Dg5fguIxO2ez6HPArKSDpRWXqKw X-Received: by 10.99.95.20 with SMTP id t20mr17899048pgb.400.1524527050762; Mon, 23 Apr 2018 16:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524527050; cv=none; d=google.com; s=arc-20160816; b=DLAzFwZ8qIA7Rcr9KNfoe6ZjQOV917tyxZrtPCOHl8wKOVpZsgZicU3M0Q2/XL+Utp Juvr5Y0vAEhSOehgFsZKIcmw7DiS9BTQKZnanoZ1dBLhRotXApS+x9l8d/ZyDtIQpKlv qXYbvCC3W+m3NKap8VGPAiXgydO+pv3C7UWboMymcXqgUSFIvGKuY1J28JTx5Wfbsng3 crsfwc0K0xUT+T2GhYgCVRSirDXA3uZyje9CNMgvncDHb7Auw/KMiXCJp07BVWN9JVWC AKn61oSAfMnnMTQGEGk+85bRR8eCfYPsr4wOb1c0zLsbQWR4aIhBfXVc8QVxD2Abhx74 DlTg== 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=xXdDgmrhPmsbdo51vLqP6z9FdH0nt47UzWeQFn3jZsw=; b=Gre6Pk4u3hSN+le1ybkRUvmqNpU+BcIfZ7ZhwdelLxURXyToaD1M+QBBi+tb9mP1kx JuzOOhEnSx+p00YkpNuoIEr8Qiazh8hRx03PYrxXDv2nkOPzX9+VQs9PX6siJQrX432f N1sh7TD3cRs5I21l9fBmQ8CqgMxc+ALCcZRTf126nim89DTmnnAssx15MiHHbkwLezHq mwQaJIUCYGBGeK6VoHFnaRp/dwG4RK5X0M/lZfN7OOv1YsRX8cAsE//ZsXnPPdmr9LhN EK56UjlNz4FYh+M//0gmRLl3eDTUdt2v8Bsskb7Kmcr8xZfRo3ZAL17IoRCWd2cgHmms VTpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h0OaA0Dm; 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 s10si10803701pge.41.2018.04.23.16.43.56; Mon, 23 Apr 2018 16:44:10 -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=h0OaA0Dm; 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 S932765AbeDWXkg (ORCPT + 99 others); Mon, 23 Apr 2018 19:40:36 -0400 Received: from mail-pf0-f173.google.com ([209.85.192.173]:46777 "EHLO mail-pf0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932723AbeDWXka (ORCPT ); Mon, 23 Apr 2018 19:40:30 -0400 Received: by mail-pf0-f173.google.com with SMTP id h69so10615877pfe.13; Mon, 23 Apr 2018 16:40:30 -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=xXdDgmrhPmsbdo51vLqP6z9FdH0nt47UzWeQFn3jZsw=; b=h0OaA0DmsgmMCvjJ8ZUeJufLkjCGnS3aUeZg/07/tZwLEAz3pxHpEZ+imJKzqYk7l/ FRKUYyHq7Rp+lJ2gO47YGu5FwegZ3xmeDxI5ekK+evPsyZ6NhvsI608flnrS3B4jByHe j4ixmEHfycBTIa1er3Lot6dH/cLgtqIg2fplWxJABaAt/rJ+WmBRoj4EMiENNlIk8ZLa DrgUpHCqUK5R/Mr0jf7kmZCSliKyyLYEf698Hv8QNZlQXsImGCL+PK2dlzLqOuybB7bs mJGEp3cBfsVyIiRSUcK90NjEtvUjGIJxDbO5sJV+fwsvTjdsgkNZWZ/TaRtPaA9llcAN F/qQ== 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=xXdDgmrhPmsbdo51vLqP6z9FdH0nt47UzWeQFn3jZsw=; b=R2UvkirmL6szArJFkSxhFDHv0IjbnLenMRcfiGRx2pjR2B1/kYqzSqXOhCO8rxZ0vS +cCXNF1mi2WGtYyJy/tCKkUWnKVhosQjIzypOdBU+Y+Y0Z//XcBVRR8IGZZ/eAaSgXiX tdbXZfR/ps4C0r9hfDVPBpAtEDW4uejmvnjJfUA5JQ36cQJTfsrbjOOjJjDhQMPczDpa 9jw+je3sL4CCNf25rDEDjXvXo/bXhVUTUrv9mrpZbTkHkQRV352024PEYQYqj2V8zEkV 4GOfOWK8ogtjp4XtB9/+KSzHYTqwqBF9cq9ljVS0aZPpLdWbtyJuSiu/ePsnRucf2Zf5 9muw== X-Gm-Message-State: ALQs6tDR7ifm5FOQeKVDqiIyJFHGOfdjSe4ib22dtTi5NU4t/+3Ax2UH PDSpOLc8g5AknQj8PI3lKMQ= X-Received: by 10.99.36.7 with SMTP id k7mr18536882pgk.63.1524526829582; Mon, 23 Apr 2018 16:40:29 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1511:8de6:27a8:ed13:2ef5]) by smtp.gmail.com with ESMTPSA id k126sm28417949pfc.142.2018.04.23.16.40.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Apr 2018 16:40:28 -0700 (PDT) Date: Mon, 23 Apr 2018 16:40:26 -0700 From: Dmitry Torokhov To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Masaki Ota Subject: Re: [PATCH] Input: alps - Demystify trackstick initialization for v3 and v6 protocols Message-ID: <20180423234026.GI66646@dtor-ws> References: <20180312230915.26050-1-pali.rohar@gmail.com> <20180312231335.fnfxgenu22utr3z6@pali> <20180314225816.634w64kggycj67ec@pali> <20180316105811.t2nkwowqs66f6ji6@pali> <20180321164126.fr4srexf5pxz4pud@pali> <20180418114030.5xkvynzeqf63ir7j@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180418114030.5xkvynzeqf63ir7j@pali> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 18, 2018 at 01:40:30PM +0200, Pali Rohár wrote: > Dmitry, ping Applied, thank you. Can you tell me if I am missing anything else for ALPS? Thanks! > > On Wednesday 21 March 2018 17:41:26 Pali Rohár wrote: > > That is pity, but OK. > > > > Anyway, as wrote patch which I sent in the first email matches this > > documentation. > > > > Dmitry, can you review/comment/accept/reject this patch? > > > > On Monday 19 March 2018 08:41:19 Masaki Ota wrote: > > > Hi, Pali, > > > > > > v3/v6 devices are T3 type, and it can use only Method 2. > > > P36 (At this time GLIDEPOINT_T3 uses the Method 2 ....) > > > T3 has the potential that uses Method2, but I think it needs to change Firmware. > > > > > > Best Regards, > > > Masaki Ota > > > -----Original Message----- > > > From: Pali Rohár [mailto:pali.rohar@gmail.com] > > > Sent: Friday, March 16, 2018 7:58 PM > > > To: 太田 真喜 Masaki Ota > > > Cc: Dmitry Torokhov ; linux-input@vger.kernel.org; linux-kernel@vger.kernel.org > > > Subject: Re: [PATCH] Input: alps - Demystify trackstick initialization for v3 and v6 protocols > > > > > > Great, thank you. Enabling that RAW/extended/SP4 mode is done by sequence E6, E6, E6, F3, C8, F3, 14 (written in page 35) and it matches what function alps_trackstick_enter_extended_mode_v3_v6() in my patch is doing. So is correct. > > > > > > On page 36 I see that there is described Method 1 for reporting stick data which prevents cursor jumps. Seems that kernel uses Method 2. > > > Method 1 depends on some prioritization. > > > > > > Do you have some information how to activate Method 1? Sometimes I observe that problem with "cursor jumps" and from Method 1 could prevent it. So I would like to try experimenting... > > > > > > On Wednesday 14 March 2018 23:56:46 Masaki Ota wrote: > > > > Hi, Pali, > > > > > > > > I have added Appendix. > > > > According to this spec documents, SP raw mode is SP 4 byte mode. > > > > I think Extended mode meaning is almost all the same as Raw mode. > > > > The description of how to set is written in Page 35. > > > > > > > > Best Regards, > > > > Masaki Ota > > > > -----Original Message----- > > > > From: Pali Rohár [mailto:pali.rohar@gmail.com] > > > > Sent: Thursday, March 15, 2018 7:58 AM > > > > To: 太田 真喜 Masaki Ota > > > > Cc: Dmitry Torokhov ; > > > > linux-input@vger.kernel.org; linux-kernel@vger.kernel.org > > > > Subject: Re: [PATCH] Input: alps - Demystify trackstick initialization > > > > for v3 and v6 protocols > > > > > > > > Hi! Thank you for information. > > > > > > > > Your PS/2 Aux Port Control description seems to really matches. Just there is reverse order of bits. Bit 0 in description is highest, therefore matches BIT(7) macro. > > > > > > > > Bit 6 in description (BIT(1) in code) describes SP Extended Mode which alps.c enabled. And in that description is written: > > > > > > > > "If 1 SP is extended packet format (driver must set SP raw mode and GP absolute mode)." > > > > > > > > Do you have any idea what "SP raw mode" is? How to set it? For me it looks like it could be that extended mode of trackstick itself. > > > > > > > > "GP absolute mode" I guess is GlidePoint absolute mode, therefore > > > > enable > > > > 6 byte absolute mode for touchpad. > > > > > > > > And for Bit 7 (BIT(0)) is written: > > > > > > > > This bit is used with the PS/2 Aux port to use the Pass-Thru mode ( see appendix A ). Do you have some information about this appendix A? > > > > > > > > On Wednesday 14 March 2018 10:21:43 Masaki Ota wrote: > > > > > Hi, Pali, > > > > > > > > > > I just picked up the spec which relates with trackstic. > > > > > > > > > > Best Regards, > > > > > Masaki Ota > > > > > -----Original Message----- > > > > > From: Pali Rohár [mailto:pali.rohar@gmail.com] > > > > > Sent: Tuesday, March 13, 2018 8:14 AM > > > > > To: 太田 真喜 Masaki Ota ; Dmitry Torokhov > > > > > > > > > > Cc: linux-input@vger.kernel.org; linux-kernel@vger.kernel.org > > > > > Subject: Re: [PATCH] Input: alps - Demystify trackstick > > > > > initialization for v3 and v6 protocols > > > > > > > > > > Masaki, if you have access to the internal ALPS v3 / Rushmore > > > > > documentation, I would like to have a review of this patch or > > > > > confirmation of those information :-) > > > > > > > > -- > > > > Pali Rohár > > > > pali.rohar@gmail.com > > > > > > -- > > > Pali Rohár > > > pali.rohar@gmail.com > > > > -- > Pali Rohár > pali.rohar@gmail.com -- Dmitry