From patchwork Sun Oct 30 22:12:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Hasler X-Patchwork-Id: 9404807 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 5E56160586 for ; Sun, 30 Oct 2016 22:13:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E07628E93 for ; Sun, 30 Oct 2016 22:13:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32FA428E9A; Sun, 30 Oct 2016 22:13:05 +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 CF20E28E93 for ; Sun, 30 Oct 2016 22:13:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754544AbcJ3WNE (ORCPT ); Sun, 30 Oct 2016 18:13:04 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34265 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754498AbcJ3WND (ORCPT ); Sun, 30 Oct 2016 18:13:03 -0400 Received: by mail-wm0-f66.google.com with SMTP id p190so9716964wmp.1 for ; Sun, 30 Oct 2016 15:13:03 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8i1MSTH7M7gZ5rH9STC8bVDSDMU9Ma8R+QqP2TT/III=; b=TcTjD/DRA8b5gEapn8cd1qNGZkOZ7SGX8Al2gRBmYs6V8S3cG1p1jdOJTwcIRS59wo OqqZGhjQBmLS2MdslldKzRREKCN4p0gHPUY1echReI8cvX556RaZffhi306g10uabWiB gNXMC76or0sEfMNEySSZDgP9qUq/4SOd/pVKJJhFQ1Rigy7iOqltTV4sKLdsPu4iPpe3 9Ng7lGSH2fvyNaBVX70d079lq3nuxGo1xWIEaTFVTzCmIxPuaVFbGxx5ZW1XszbVL28W vshDtfsXBRp43JxwAqv7A5iR95uzk9NfkPELtHmd2Aml0Mv7oURXWwM6uincfIKRvCWK Hiyw== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8i1MSTH7M7gZ5rH9STC8bVDSDMU9Ma8R+QqP2TT/III=; b=BWIHI+W+ZBqW3Y8USYa9MwkxsHPlGOxoZaV+V5cmIXcNrpzW2BSWaamHRaMgrajrfS /6yddTZFTXHAWeQLle5OAL600MJz/HWx8OwK7xfyNzZiCseetxfz8KarM/sC0CmuSC1b E6Vchk1jiwD8N9GKSQdjXBos8yQ+fqHT+5uv98wtas4cFR194qKoRlN1nIuARytYSHPD PVoNDhW/cKRq47RKiFh8F9XZpdTiuznUA39a9bFCqPy0hf4+WDUWwIPCQkO4JuaL0efP 66R3k1FvI87j5bdofLTlXb8kr1coEQ3ZCH16HgVh05T8mqDU+BYkVHIBMr1oHAneWZff txFA== X-Gm-Message-State: ABUngvdkQsiPxaZi/2+UiByvqWQ0TYwWqOFVF357ky32HXoIILaV/TGf0O6AiwLA3ul/3g== X-Received: by 10.194.161.193 with SMTP id xu1mr23937403wjb.67.1477865582222; Sun, 30 Oct 2016 15:13:02 -0700 (PDT) Received: from arch-desktop ([2a02:908:672:a420:922b:34ff:fe11:2b9f]) by smtp.gmail.com with ESMTPSA id gk6sm26603724wjc.21.2016.10.30.15.13.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Oct 2016 15:13:01 -0700 (PDT) Date: Sun, 30 Oct 2016 23:12:56 +0100 From: Marcel Hasler To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org Subject: [PATCH 1/2] usbhid: Add quirks for Mayflash/Dragonrise GameCube and PS3 adapters. Message-ID: <20161030221256.GA15434@arch-desktop> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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 --- 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 },