Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp856859imm; Tue, 3 Jul 2018 00:54:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIVrzbBGx5cjr6CBAobX31f9YW230gJGcRm0zbPMFt9gdBMtlJjCT83vfr49gcGeckETSnc X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr28967837pls.169.1530604485363; Tue, 03 Jul 2018 00:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530604485; cv=none; d=google.com; s=arc-20160816; b=kqVsgUIW2HT/v/7OEuCZ/PRbEYjrviKXhyXk8LFYS8CfNa7HcuL/tc/GK38vKKDntu +sg/JBCelKG5prBpyLOmbZ/vHHusn/8E2WGvQGGSquu2XyStB765iCLRsdEb5LE44s2b 5uz7fzSOTrLm2PEexXBei6rsl0IGAsAAHKqQmAfOlqXwclDNy4NGLNUoxXNMzFi1mImh pYw3qiU5g9bKo+2vMuAeDyNhdYLzKJg69K39kb1KZBkaVhkhweEU9JT39omTTzj5hrQU x/hrQcN5oVX3v5UGc7O6OlWNiWx/WXxIxdEl+frr6DYjnjam3l8h2QiTT3oxZoYO/fdd KMOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=Y5xkVeJY5is/FvaiyzAZe+HNnmvk3LAoYIqKEhGNYVY=; b=Wja0s85m8SBBaFb1C+adpDqtMUJx1ta5af4+saUNZ939j6bST2ntm1CFZWrdgG830E YmGKdQdC8sYBV6txlJYJuKKj4oHc+3NeR7rkrACrSHCQrl/WN2lS5MoHvYMJXnBa/4sB nl3IuIiu+GPl1f57S5/AcNtxgeVQ8Nr9KukCZEGi9YZfLtbXF+A+zxgUNq4Y3Ppmwz2h S3yYVbxZbyCPFq3Alhx6ge+Qsyg9A5WsqcJNgw5k7jqZOIRYaz6uipLDh9cBVx1avpUc zsqSSYHfNU4IwXYIuWhlySWpDnvKFfiIuk0hwAdDfZNa5Yeeu35INYk5s+iNjQmqSpR9 TidA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62-v6si554165pfu.79.2018.07.03.00.54.30; Tue, 03 Jul 2018 00:54:45 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933712AbeGCHxW (ORCPT + 99 others); Tue, 3 Jul 2018 03:53:22 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:37893 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754342AbeGCHxV (ORCPT ); Tue, 3 Jul 2018 03:53:21 -0400 Received: by mail-qt0-f195.google.com with SMTP id c5-v6so783732qth.5 for ; Tue, 03 Jul 2018 00:53:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Y5xkVeJY5is/FvaiyzAZe+HNnmvk3LAoYIqKEhGNYVY=; b=Fkt3QYIc49HkC2+I4zOZWaekuMGK3/xLRoqCKxvzz1d6AbWVfV1kk4c/mq8efObNKd OYrRlRwJbVE5e4CX646VrrVI3P9Xamhr7hRW1g90Z2wPhKZbMr7WgLOZv7DuVl9/h1yl NgE3rLPKunYhJuZD6qfgM9VpwLchpC+ZYKmEgvbKC3aKS9gNrWrD1uHOD7tycd9pcFeE eUbyqC2sqhggyiWfKT3ecvqmIpwcxDs7A3Ogfwd0i3bN+ZF7KVuLD8LsVNfj8un53zEX nh1YBLJMRMlylythJoO5cDz7NMDjU3PwrWI6in7CXUsvadfo6qnB5YefBpRYqShWRwPf 6hrw== X-Gm-Message-State: APt69E3CE0Obp+BewBqgZIxGwdXIJckNUoXqzrO1h1T7VpZJhROOvvUx 9romwfI0iBmBX/dI9NRt0R/sdMPQg2PxcxdfdQ9Vcw== X-Received: by 2002:ac8:2dc6:: with SMTP id q6-v6mr23260650qta.178.1530604400447; Tue, 03 Jul 2018 00:53:20 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:2fca:0:0:0:0:0 with HTTP; Tue, 3 Jul 2018 00:53:19 -0700 (PDT) In-Reply-To: <958e450a066289c94ba03429166c972c54be6fb3.1530402641.git.joeypabalinas@gmail.com> References: <958e450a066289c94ba03429166c972c54be6fb3.1530402641.git.joeypabalinas@gmail.com> From: Benjamin Tissoires Date: Tue, 3 Jul 2018 09:53:19 +0200 Message-ID: Subject: Re: [PATCH 1/4] HID: multitouch: add MT_QUIRK_NOT_SEEN_MEANS_UP to MT_CLS_WIN_8 quirks To: Joey Pabalinas Cc: "open list:HID CORE LAYER" , lkml , Jiri Kosina , Daniel Martin Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 1, 2018 at 2:19 AM, Joey Pabalinas wrote: > The firmware found in the touch screen of the Surface Pro 3 is slightly > buggy and occasionally doesn't send lift off reports for contacts; add > MT_QUIRK_NOT_SEEN_MEANS_UP to .quirks to compensate for the missed > reports. > > Signed-off-by: Joey Pabalinas > > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c > index 45968f7970f87775fa..a793076139d7d0db9b 100644 > --- a/drivers/hid/hid-multitouch.c > +++ b/drivers/hid/hid-multitouch.c > @@ -242,11 +242,12 @@ static struct mt_class mt_classes[] = { > .quirks = MT_QUIRK_ALWAYS_VALID | > MT_QUIRK_IGNORE_DUPLICATES | > MT_QUIRK_HOVERING | > MT_QUIRK_CONTACT_CNT_ACCURATE | > MT_QUIRK_STICKY_FINGERS | > - MT_QUIRK_WIN8_PTP_BUTTONS }, > + MT_QUIRK_WIN8_PTP_BUTTONS | > + MT_QUIRK_NOT_SEEN_MEANS_UP }, NACK on this. If the Surface has a buggy firmware, we should handle it as a special case, not as a common failure. Also, I am not sure this quirk is compatible with Win 8 specification. Last, we now have a timeout for unreleased touches, so I really don't think you need that in recent kernels. Cheers, Benjamin > { .name = MT_CLS_EXPORT_ALL_INPUTS, > .quirks = MT_QUIRK_ALWAYS_VALID | > MT_QUIRK_CONTACT_CNT_ACCURATE, > .export_all_inputs = true }, > { .name = MT_CLS_WIN_8_DUAL, > -- > 2.18.0 >