From patchwork Sun Oct 30 09:29: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: 9404377 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 750EF60586 for ; Sun, 30 Oct 2016 09:29:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E84028FAE for ; Sun, 30 Oct 2016 09:29:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5316A28FB3; Sun, 30 Oct 2016 09:29:23 +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 EC78328FAE for ; Sun, 30 Oct 2016 09:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752259AbcJ3J3V (ORCPT ); Sun, 30 Oct 2016 05:29:21 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34451 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750951AbcJ3J3V (ORCPT ); Sun, 30 Oct 2016 05:29:21 -0400 Received: by mail-wm0-f67.google.com with SMTP id p190so7726214wmp.1 for ; Sun, 30 Oct 2016 02:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=8i1MSTH7M7gZ5rH9STC8bVDSDMU9Ma8R+QqP2TT/III=; b=EXDolkWMlXVPAaRNbpU0nF87jP7CbQ8+ws4CuxB7nMUrPgpnb9OcYkjYm2TCsRlzsQ VVARasaQ5ZI2IPnnmjwyi4bQO/YuLobWOAZyREax36cRqwNgD9O8KJqzV+FmvkyFrWWv a7RNwGwcG6Dqxk4MMK5pe/qROXI3BtnsLwLV/zyLALtGLRqIX2s5c3qG0BPnE6/wZEMe 9RGyBAhrFggr2kZiWxnQ6VFEASoRNSG8luVN8xBMw6GEzDBc78cvbsIyf5e1cpYDjk9H Pe8jZYP6ejTnfjeJlfpdLVz8TBZJX5g5TyTJ3EsQ8unlyPPSGG1tC8WO8+pW6edOwyMn 1O5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=8i1MSTH7M7gZ5rH9STC8bVDSDMU9Ma8R+QqP2TT/III=; b=ZC6/rT+W909sPhByTw8S8d1AhG8/941rbClMuZECVAP4mdVZuL+HtNMgwcYlu8rBoo lVFkxeynYmLci9rivwfAQgr3sIK94Wzq4b8f9j0YyVQ4js1ETHSYVMJx9UeEDT1rVJp+ otulAj+a0/Y6oztAGZdTiTuz7NgoXOws48xrdYN0cGb8hYuUN/AruVJ4oNfwGPylq4At iSL9/CvIdoyS2USgl3jfbTxQezyyXOfQadVp7aJSFHPNA63icYMYmqAv270oT/wUGFC2 jEm7nulsyVfZ+VR/PjHzBqGYF4drA1H83Ks8e9EyfCG1GUU5brT+kRI6KNJp4Z1kyVRm xvOg== X-Gm-Message-State: ABUngvc5b14r5jinc1ACrls5Tjy5KnItS+WEqMFjucQXWsTtd2IDvDzEhB/hD2yaxGsZqQ== X-Received: by 10.194.82.100 with SMTP id h4mr17757929wjy.183.1477819759732; Sun, 30 Oct 2016 02:29:19 -0700 (PDT) Received: from arch-desktop ([2a02:908:672:a420:922b:34ff:fe11:2b9f]) by smtp.gmail.com with ESMTPSA id 18sm18507530wmp.24.2016.10.30.02.29.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Oct 2016 02:29:19 -0700 (PDT) Date: Sun, 30 Oct 2016 10:29:13 +0100 From: Marcel Hasler To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org Subject: [PATCH] usbhid: Add quirks for Mayflash/Dragonrise GameCube and PS3 adapters. Message-ID: <20161030092913.GA3426@arch-desktop> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) 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 All known gamepad adapters by Mayflash (identified as Dragonrise) need HID_QUIRK_MULTI_INPUT to split them up into four input devices. Without this quirk those adapters are falsely recognized as tablets. Fixes bug 115841 (https://bugzilla.kernel.org/show_bug.cgi?id=115841). Signed-off-by: Marcel Hasler Reviewed-by: Benjamin Tissoires --- drivers/hid/hid-ids.h | 6 ++++-- drivers/hid/usbhid/hid-quirks.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 6cfb5ca..642e648 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -314,8 +314,10 @@ #define USB_VENDOR_ID_DMI 0x0c0b #define USB_DEVICE_ID_DMI_ENC 0x5fab -#define USB_VENDOR_ID_DRAGONRISE 0x0079 -#define USB_DEVICE_ID_DRAGONRISE_WIIU 0x1800 +#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_GAMECUBE 0x1843 #define USB_VENDOR_ID_DWAV 0x0eef #define USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER 0x0001 diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c index 354d49e..05f6f61 100644 --- a/drivers/hid/usbhid/hid-quirks.c +++ b/drivers/hid/usbhid/hid-quirks.c @@ -81,6 +81,8 @@ static const struct hid_blacklist { { USB_VENDOR_ID_CREATIVELABS, USB_DEVICE_ID_CREATIVE_SB_OMNI_SURROUND_51, HID_QUIRK_NOGET }, { 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_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 }, { USB_VENDOR_ID_FORMOSA, USB_DEVICE_ID_FORMOSA_IR_RECEIVER, HID_QUIRK_NO_INIT_REPORTS },