Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932412AbdHVJd1 (ORCPT ); Tue, 22 Aug 2017 05:33:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50836 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932205AbdHVJd0 (ORCPT ); Tue, 22 Aug 2017 05:33:26 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 1B2D37F772 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=benjamin.tissoires@redhat.com Date: Tue, 22 Aug 2017 11:33:19 +0200 From: Benjamin Tissoires To: JamChen Cc: jikos@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, zboszor@pr.hu Subject: Re: [PATCH] HID: core: assign usbhid to handle EETI PID=0x0001 HID device Message-ID: <20170822093319.GC25370@mail.corp.redhat.com> References: <20170811074201.2747-1-jam.chen.egalax@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170811074201.2747-1-jam.chen.egalax@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 22 Aug 2017 09:33:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1496 Lines: 47 On Aug 11 2017 or thereabouts, JamChen wrote: > From: Jam Chen > > The vendor used the same PID(0x0001) for multiple touch IC controllers. > The newer ICs can support HID class and report the multitouch collection > in the descriptor. So they were handled by the hid-multitouch driver. > But some customized firmwares don't support multitouch protocol even if > driver have got the Win8 blob data. > > Actually, those ICs only support the single touch function, and report > the mouse protocol by default. We can assign usbhid to handle them all. > > Signed-off-by: Jam Chen > --- Him FYI, I'd rather see a full working solution such as the one presented here: https://patchwork.kernel.org/patch/9876649/ Because this solution is half working as it regresses on some devices while solving others. Cheers, Benjamin > drivers/hid/hid-core.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c > index 9017dcc14502..df4696022488 100644 > --- a/drivers/hid/hid-core.c > +++ b/drivers/hid/hid-core.c > @@ -828,6 +828,10 @@ static int hid_scan_report(struct hid_device *hid) > */ > hid->group = HID_GROUP_RMI; > break; > + case USB_VENDOR_ID_DWAV: > + if (hid->product == USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER) > + hid->group = HID_GROUP_GENERIC; > + break; > } > > /* fall back to generic driver in case specific driver doesn't exist */ > -- > 2.11.0 >