From patchwork Tue Dec 20 21:08:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Hasler X-Patchwork-Id: 9482235 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 2603B60237 for ; Tue, 20 Dec 2016 21:08:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A55828391 for ; Tue, 20 Dec 2016 21:08:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0EDB8283E0; Tue, 20 Dec 2016 21:08:34 +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 9CA4528391 for ; Tue, 20 Dec 2016 21:08:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757196AbcLTVIY (ORCPT ); Tue, 20 Dec 2016 16:08:24 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:32997 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757046AbcLTVIU (ORCPT ); Tue, 20 Dec 2016 16:08:20 -0500 Received: by mail-wm0-f65.google.com with SMTP id u144so26734860wmu.0 for ; Tue, 20 Dec 2016 13:08:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=OZIj4aFE8xrbnPEvl9NWO9YD6b10jWqgB+ulxC5T5lU=; b=tWf/ODCDcYoZAKf+sYtsvrikZSYF6l9vwxWLx1lK3qZa1CgcWfHkjlXhMbo0psEgwe 53yf4ZKvLIdey3O5OpxdCfUm+6vq9JtpQRRiJnrVINTKHU/QU0l6tdvyLwL1ErybAIuv GM69eJUtST3euT0BxshM5BDVXs0CytyVdZoUY5y/fD2UlB1sBNNawo216J7C+oTpUTpq nbvaA0bk+IByTkqsrzct4Tx07oHXqfKLPXSiSVsMtA33GMGZ0LZ8rkWCDGVsfYZ7eHgb GLv5nsDCe32oldI0bGoxsZXNJbiWKk5GF7YpA3gAYObIhURwH8/XxELVvG1F+70qdWD4 o+EA== 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:mime-version :content-disposition:user-agent; bh=OZIj4aFE8xrbnPEvl9NWO9YD6b10jWqgB+ulxC5T5lU=; b=EKy6Vc7GFJMldgtAbLJwF+8YVYOruxmP4NPa13vljm6AR8vZErFZJ7Zq/GeHYEl3PD xPWL/7afMKhPl2KzbYc2ZitswOyNOov9B68bp5NIRs6p/g75UfPt5oW5upeEQGD3DMaa x22Mp85fCbxOiG9/5usqkOmIBlyOz5Q6dGuLM8ZgwKv0g68BEWJk9iWk3iDFHA/Nz7+s KiyHlY83sNHL8joQ6Aarh6BFSX8nikAoltb/5wTvInU4FkOz0eo6h4uVqpebChPRf8zG HQLNNUelo12+e4wzN310qer4F747MaqtAKAWcsGtmClgFygODxt4UQRLFbivQOx8ehxC WW9A== X-Gm-Message-State: AIkVDXK63FmmhiJpi8ecsQ4vYmoRqFMHg5QbzG0ZYSsFlrhiyFaipBg4vJSgetXQsmPk+A== X-Received: by 10.28.139.12 with SMTP id n12mr1581316wmd.79.1482268098904; Tue, 20 Dec 2016 13:08:18 -0800 (PST) Received: from arch-desktop ([2a02:908:670:1a80:728b:cdff:fe7f:6af7]) by smtp.gmail.com with ESMTPSA id e188sm23963590wma.21.2016.12.20.13.08.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Dec 2016 13:08:18 -0800 (PST) Date: Tue, 20 Dec 2016 22:08:13 +0100 From: Marcel Hasler To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org Subject: [PATCH] usbhid: Add quirk for Mayflash/Dragonrise DolphinBar. Message-ID: <20161220210813.GA25699@arch-desktop> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) 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 The DolphinBar by Mayflash (identified as Dragonrise) needs HID_QUIRK_MULTI_INPUT to split it up into four input devices. Without this quirk the adapter is falsely recognized as a tablet. See also bug 115841 (https://bugzilla.kernel.org/show_bug.cgi?id=115841). Signed-off-by: Marcel Hasler --- drivers/hid/hid-ids.h | 1 + drivers/hid/usbhid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index ec277b9..eff818c 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -319,6 +319,7 @@ #define USB_VENDOR_ID_DRAGONRISE 0x0079 #define USB_DEVICE_ID_DRAGONRISE_WIIU 0x1800 #define USB_DEVICE_ID_DRAGONRISE_PS3 0x1801 +#define USB_DEVICE_ID_DRAGONRISE_DOLPHINBAR 0x1803 #define USB_DEVICE_ID_DRAGONRISE_GAMECUBE 0x1843 #define USB_VENDOR_ID_DWAV 0x0eef diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c index b3e01c8..02fc876 100644 --- a/drivers/hid/usbhid/hid-quirks.c +++ b/drivers/hid/usbhid/hid-quirks.c @@ -83,6 +83,7 @@ static const struct hid_blacklist { { USB_VENDOR_ID_DMI, USB_DEVICE_ID_DMI_ENC, HID_QUIRK_NOGET }, { USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_DRAGONRISE_WIIU, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_DRAGONRISE_PS3, HID_QUIRK_MULTI_INPUT }, + { USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_DRAGONRISE_DOLPHINBAR, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_DRAGONRISE_GAMECUBE, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_ELAN, HID_ANY_ID, HID_QUIRK_ALWAYS_POLL }, { USB_VENDOR_ID_ELO, USB_DEVICE_ID_ELO_TS2700, HID_QUIRK_NOGET },