From patchwork Thu Nov 3 18:47:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Hasler X-Patchwork-Id: 9411347 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 82ADF60573 for ; Thu, 3 Nov 2016 18:47:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79BE32AED7 for ; Thu, 3 Nov 2016 18:47:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D4BD2AEDA; Thu, 3 Nov 2016 18:47: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 1F9352AED7 for ; Thu, 3 Nov 2016 18:47:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757073AbcKCSrd (ORCPT ); Thu, 3 Nov 2016 14:47:33 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33247 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751693AbcKCSrc (ORCPT ); Thu, 3 Nov 2016 14:47:32 -0400 Received: by mail-wm0-f68.google.com with SMTP id u144so386993wmu.0 for ; Thu, 03 Nov 2016 11:47:32 -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=A4XxG95eGZj/XoQa5TMFbhfehfgpLV4Qs0T5I1veumE=; b=c0r2jY8ZpxdSnA+yJH0ziClrbzcDpAd7Dve+H+ULuzIdo6MALWLGyat8l7f0DMnUVm 5brrEQE1o1+njTqNQIH+eW0avQzq0ruEIohLo5aTRt3Yt17/5UXwjvu5NJg0lFQ4AI+7 svKDZJEqF96suOKiVDAzoUF1jBk2u4aKmAuCH1LYKipv0Qrj34e5/DBAI0qB+9i5uaAg 1x968dUzI4DCUCH9bRgJc3Xif/6gBVXcAh4mrI0C4rtHNsdIg+EWQhKG2b/HJhlQWt8r mOikTRJGUwYfTGVSjV6BdtPcq9Ye2D+HWbXDF6LlJRvbTKCnbEhcEkvYyb1muwA3J5Mc tQ9w== 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=A4XxG95eGZj/XoQa5TMFbhfehfgpLV4Qs0T5I1veumE=; b=l54R35wum6nLH9hv4shSjFrvCHiiFCX5jmP/hJHs7e3rLFiU16FWmiyUK45us3T0Cq n/CTLQEbLEj1d1/cqV2huukGUCju+BiQ5UB+iyOZ4LBFl4kqXECuN1b9Yr3q9g1ZYkyo ZfVfTNpfSbNMv6kox5egx1uKUVuGzA3gb7AMz/naBq/EgaYKNGKNL6FHDcOJeMjT8EeH wegVP8UjEwOCbQdPErXHW/6agp0CD6L3H0hyw5wHmvl5vvXdcU9btUFIAt2XnxUQYMJ4 WsNwIKZBYrs+k2+kWgaZly+Rprc/iv38VH+29mbgw1ASTpCiVZp6QtOIRPPN6tGh1VeA 0qiw== X-Gm-Message-State: ABUngvfeidmCiLUcvyrHF1dEWaQtPzkIu+UHWuCk5yEwrpyYBYbofbcv2yFZWvPvtUtB/Q== X-Received: by 10.28.32.150 with SMTP id g144mr3696475wmg.46.1478198851330; Thu, 03 Nov 2016 11:47:31 -0700 (PDT) Received: from arch-desktop ([2a02:908:672:a420:922b:34ff:fe11:2b9f]) by smtp.gmail.com with ESMTPSA id f4sm394316wmd.15.2016.11.03.11.47.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Nov 2016 11:47:30 -0700 (PDT) Date: Thu, 3 Nov 2016 19:47:26 +0100 From: Marcel Hasler To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org Subject: [PATCH v3 1/2] usbhid: Add quirks for Mayflash/Dragonrise GameCube and PS3 adapters. Message-ID: <20161103184726.GA21339@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 },