From patchwork Fri Aug 11 07:42:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JamChen X-Patchwork-Id: 9895161 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 5E658602DA for ; Fri, 11 Aug 2017 07:42:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FEB728C00 for ; Fri, 11 Aug 2017 07:42:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4490728C03; Fri, 11 Aug 2017 07:42:20 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 E10EE28C00 for ; Fri, 11 Aug 2017 07:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752514AbdHKHmS (ORCPT ); Fri, 11 Aug 2017 03:42:18 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36911 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871AbdHKHmR (ORCPT ); Fri, 11 Aug 2017 03:42:17 -0400 Received: by mail-pg0-f65.google.com with SMTP id 83so2552195pgb.4; Fri, 11 Aug 2017 00:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=HIwihc1lvsBAiJu7YVASTPI+S3pkd/ExGuWXboqkCdQ=; b=O4mZ3nsKVyelY/L4Ybquyc1q1OfgN4qILr5thrSlT+7dbxybVYpyH1UqqodTd4AOAX VLR3QWLqNcobSa+fD7q00fK02awZ6fw2Op04dogKdMTePe20qWWvxKCQ/7Qhr5b1SDjA M020xvnFxj2qNwZvNYY0n/6gUAns4xmoeUGAcAetDRzDEasW7taj9Y4UBUsE/gvquFtN O26N68m7cuN0fhzu6+1bn1vnddQBoZQejZJyYf/MedylDnMmq7MeY2/u8CJwFOxA3lUg nJbPJePu2Z/Uc4E5CdvOYKUpVnQlBON2qJ7Wa9FY4veHOLKGm202LlrPOsvHzzHmraLZ maDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HIwihc1lvsBAiJu7YVASTPI+S3pkd/ExGuWXboqkCdQ=; b=NMZwddfoPafYPGRi/sSO317T1sdzW/obxde2KbDZTF7p0LyEeElbo+HmWZS+XGc8D4 z6iC6RLgzh5JWWx0iBza9ulb9T7VApPwgwSggrXhBA55+GZifa9790L57aq7yNPhn7y3 vjEAsn02NE0FKJcnY73s8ks6zqF6WtkHwkZZNCvzTg+ZkFlNoXDJrDbIDtZvVjvOpco1 lghCGyjLOvkMn2uO5BMjGqM8PyaOH8caY3j7Dm3PjII9ONoM+S9JkrLCPEcZpXzHQZzy q3axRK1h9M81cDupqSf7D0qKo8Ary9P8S+LcZc3lYni1GSc0IfFWp1oKnHQcfhlR5tF6 fIZg== X-Gm-Message-State: AHYfb5ghks5gY2APunXq/mvQu4619/XeXkmNbe+hb58cX6x3awfLLDLd 3qaA3T6BSmIHvA== X-Received: by 10.84.236.9 with SMTP id q9mr16485104plk.345.1502437337466; Fri, 11 Aug 2017 00:42:17 -0700 (PDT) Received: from localhost.localdomain (60-251-54-214.HINET-IP.hinet.net. [60.251.54.214]) by smtp.gmail.com with ESMTPSA id u67sm701534pfd.164.2017.08.11.00.42.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Aug 2017 00:42:16 -0700 (PDT) From: JamChen To: jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, zboszor@pr.hu, jam.chen.egalax@gmail.com Subject: [PATCH] HID: core: assign usbhid to handle EETI PID=0x0001 HID device Date: Fri, 11 Aug 2017 15:42:01 +0800 Message-Id: <20170811074201.2747-1-jam.chen.egalax@gmail.com> X-Mailer: git-send-email 2.11.0 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 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 --- 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 */