From patchwork Fri Jun 3 09:38:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Benjamin Tissoires X-Patchwork-Id: 9152377 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5E12E607D5 for ; Fri, 3 Jun 2016 09:39:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EC31282EE for ; Fri, 3 Jun 2016 09:39:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4339C28328; Fri, 3 Jun 2016 09:39:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC88D282EE for ; Fri, 3 Jun 2016 09:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752656AbcFCJjJ (ORCPT ); Fri, 3 Jun 2016 05:39:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46215 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751782AbcFCJjA (ORCPT ); Fri, 3 Jun 2016 05:39:00 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DB010332F8A; Fri, 3 Jun 2016 09:38:59 +0000 (UTC) Received: from mail.corp.redhat.com (ovpn-116-42.ams2.redhat.com [10.36.116.42]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u539ct5E008220 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 3 Jun 2016 05:38:58 -0400 Date: Fri, 3 Jun 2016 11:38:55 +0200 From: Benjamin Tissoires To: Andy Shevchenko Cc: Jiri Kosina , Bastien Nocera , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] HID: multitouch: enable the Surface 3 Type Cover to report multitouch data Message-ID: <20160603093855.GC6063@mail.corp.redhat.com> References: <1463062363-12405-2-git-send-email-benjamin.tissoires@redhat.com> <1463149818.17131.349.camel@linux.intel.com> <20160513144927.GZ23234@mail.corp.redhat.com> <1463155787.17131.351.camel@linux.intel.com> <1463156908.17131.353.camel@linux.intel.com> <20160520075835.GJ23234@mail.corp.redhat.com> <20160531160741.GX23234@mail.corp.redhat.com> <1464717399.1767.1.camel@linux.intel.com> <20160602141127.GZ23234@mail.corp.redhat.com> <1464878415.1767.27.camel@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1464878415.1767.27.camel@linux.intel.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 03 Jun 2016 09:39:00 +0000 (UTC) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Jun 02 2016 or thereabouts, Andy Shevchenko wrote: > On Thu, 2016-06-02 at 16:11 +0200, Benjamin Tissoires wrote: > > > > > >  > > On May 31 2016 or thereabouts, Andy Shevchenko wrote: > > > On Tue, 2016-05-31 at 18:07 +0200, Benjamin Tissoires wrote: > > > > On May 20 2016 or thereabouts, Benjamin Tissoires wrote: > > > > > On May 13 2016 or thereabouts, Andy Shevchenko wrote: > > > > > Would you mind sending me a hid-recorder[1] trace of the device > > > > > while > > > > > typing few keys and using the touchpad? > > > >  > > > OK, so it looks like your touchpad stays in the mouse emulation mode > > for > > some reasons. Did you do the recordings with hid-multitouch patched, > > or > > with plain hid-generic or an other one? > > I take linux-next + your two patches from this thread (+ some unrelated > to HID patches). OK. I think I know what happened: - Microsoft forgot to put the Win 8 certification blob in this particular device (of course, because Microsoft) - we do not detect it as a Win 8 certified and do not set the HID_QUIRK_NO_INIT_REPORTS flag - your dmesg should show some error on plug, and then hid can't set the input mode - I can't add a "if win 8 then show the mouse collection" because your device doesn't report itself as win 8 :) Anyway, could you try applying this small diff after my 2 patches and report if you now have a working touchpad?: --- Cheers, Benjamin > > > > > After further thoughts, I think it should be acceptable to enable the > > mouse collection for Win 8 certified devices. Touchscreens are not > > supposed to expose such a mouse emulation, so that would mean that > > only > > touchpad will export one. > > > > > I'll come with a patch by the end of the week (hopefully). > > Cc me and I will test 'em. > > > -- > Andy Shevchenko > Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index ac35731..e51a753 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1379,6 +1379,10 @@ static const struct hid_device_id mt_devices[] = { MT_USB_DEVICE(USB_VENDOR_ID_ILITEK, USB_DEVICE_ID_ILITEK_MULTITOUCH) }, + /* Microsoft */ + { .driver_data = MT_CLS_WIN_8, + MT_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, 0x07cd) }, + /* MosArt panels */ { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE, MT_USB_DEVICE(USB_VENDOR_ID_ASUS,