Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4690047ybi; Tue, 28 May 2019 00:35:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqw67qQ8Kw7IYvyfdFwpx75OFJP3eYgMS/gh4Wk+agrwW7y572hZyVehsGQ8k/e/CQQUmjmp X-Received: by 2002:a17:902:3103:: with SMTP id w3mr57567321plb.329.1559028951022; Tue, 28 May 2019 00:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559028951; cv=none; d=google.com; s=arc-20160816; b=HYQsanW60Zsy2JLWLCyxAFKiQV/f7xHQ9AKH6RdHR18qtLq7cSdARpy3rrh1xdAXBc 8UrNKpY9bO+KOuj1ChqcgMVZmbeR66O4sOnEHDM7tZ7CHd8qsjS6zrKAXLpWEJTy+ZkG fSaNtdfhVMJefbVblbb2aNVsS0hcN9Cj/eboYyC/R/l27HCWi5T99C/r5o6gIPD0URIe AhNPcH0AWz/nu51ldXercHfcMEzwcANFJzG6h7/iLJPk2xhAM5F4XIipStq4dFaU6lGf +chnt3D1ZVUSCBzOfmqLV1gJ4ulgOlBzgtRPdDTtTH9moHAjx88Qd2vSNkm/jk3nAA8x WnZg== 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=hsG2/zYumWx3hY65ej4oXZediJF1qu78qDJMfDhrSGM=; b=X8xLM9ZR1dpJ1LC7pSKVN2pu0HdRGb8y1GKleEBuVGX1pH4oR2oGh2Uktiq1dpO893 PvcKUbJEh+K/zQlJQIyWFVTxJ2VuccVeHa+gFzHanEyp4Td3jZytKEWyVH4t+hug+uPk cTfih3XCJaT3TVoxkyusee49Di2HIPp+fjJNB+zvx0k3UvReIx4v9Fic0QQmAtUmag8G TlIcyodjj3lzrFM+T6AYXtgVimvnJvzeawEUCsHU2+QVUukqZCbIUZlmj8A0hnw3WYFV BeC+TalfKv34wckC9/26lyOYr3rj19REuMPQlaRLAVfBBWZj/OEFsIMBssiZAf5UzP11 3OUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ABzrEBdw; 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 b5si21212853ple.81.2019.05.28.00.35.35; Tue, 28 May 2019 00:35:51 -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=ABzrEBdw; 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 S1727386AbfE1HSa (ORCPT + 99 others); Tue, 28 May 2019 03:18:30 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40860 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfE1HS3 (ORCPT ); Tue, 28 May 2019 03:18:29 -0400 Received: by mail-wm1-f67.google.com with SMTP id 15so1534443wmg.5; Tue, 28 May 2019 00:18:28 -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=hsG2/zYumWx3hY65ej4oXZediJF1qu78qDJMfDhrSGM=; b=ABzrEBdweesg7BndzuAEo0nRLZOwj9lrM8O2hMPb5IyDAUcr5cI47/l4dpwMOUH9RP bAun4ymYEC4R44X4AtZKm1T/W31PqbaUBsgrxMBKADhYOI/m7491GD+/fcBM4atMBbtX 293wyUp+c9wpzcRbj+g5hGbjI7sn9hhMLk+DNrBrk8H6Q5XhrvML0BIPygVlxQUv7Sv0 oSf6Ntgs9YfYWBagnLgfF6mUBTtrYjkTW823DZJgcvM/5vQRj73RYk/XkH0Jpw+fC2L2 JOxsbbWzkCrRGvKreMOUljtEXWp04YvUNoufxVLio4+lfQ7ok213KAmJ/FX0caJeNJPu dzFw== 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=hsG2/zYumWx3hY65ej4oXZediJF1qu78qDJMfDhrSGM=; b=l/V6VjawoNQ2vesOMX7TEXhbyQwZrUNgDg829M3NtgIgb9tfOMstSmX4l7CW95f0Pc TK9qwUw5HK5e9Sd4XtCShlr1U45ZNOU5/zzLH/Yzhj3+Y00GVlWWeaN35IhIYnvkRKqW ob7d8h0CZwQ2S4B3uVhJvjWyjE3wtDobAkeJDBy7FDCP65BQfmsk+CmX2AnzyMsVUAmS SXUTu9FQQJon9EUGcdk6afFpcsCur4n7yTpL33YIcX+D8kpns/bN0+dHOAZFBoU03OQm l2rrLbSKnvZAWCXrNeO0rFY0coxlABFDZbpXEOnYNlWK6722UEor8NDO6fPFHgFqjS1Q 45pw== X-Gm-Message-State: APjAAAUKHeBmO2Dd0lqbfXfvFAFFgqNfRJlEOfLxp/djOUEELPVVxBSm NXlPT5WvVfhDJMiitkzhcaQ= X-Received: by 2002:a1c:f102:: with SMTP id p2mr1901471wmh.126.1559027907362; Tue, 28 May 2019 00:18:27 -0700 (PDT) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id b18sm11810751wrx.75.2019.05.28.00.18.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 00:18:25 -0700 (PDT) Date: Tue, 28 May 2019 09:18:24 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Xiaoxiao Liu Cc: XiaoXiao Liu , "dmitry.torokhov@gmail.com" , "peter.hutterer@who-t.net" , "hui.wang@canonical.com" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Xiaojian Cao , "zhangfp1@lenovo.com" , Naoki Saito Subject: Re: =?utf-8?B?562U5aSNOiBbUEFUQ0g=?= =?utf-8?Q?=5D?= input: alps-fix the issue alps cs19 trackstick do not work. Message-ID: <20190528071824.jimhixhtsynzwixe@pali> References: <20190527094422.7558-1-sliuuxiaonxiao@gmail.com> <20190527100913.sgxrjrmphsjfmcdb@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 Tuesday 28 May 2019 01:37:14 Xiaoxiao Liu wrote: > Add Saito-san. > > Hi Hui, > Does it mean that your device (reported to kernel) sends only trackstick packets and not touchpad? > -> Yes. Ok, I think this answers all questions. So your patch is not correct as it registers "fake" touchpad device even there is no touchpad at all. You should fix your patch to not register touchpad input device, in your case it should register only trackstick device. I suggest to add some flag which would indicate such device (e.g. ALPS_ONLY_TRACKSTICK). Also currently kernel exports following names when device has both trackstick and touchpad: "DualPoint Stick" and "DualPoint TouchPad". And it exports name "GlidePoint" for touchpad-only device. So to be consistent you need to also modify this code for trackstick-only device. -- Pali Rohár pali.rohar@gmail.com