From patchwork Sat Oct 24 15:44:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michele Baldessari X-Patchwork-Id: 7480801 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BDB9CBEEA4 for ; Sat, 24 Oct 2015 15:53:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E2BC120738 for ; Sat, 24 Oct 2015 15:53:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1400B20734 for ; Sat, 24 Oct 2015 15:53:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751987AbbJXPwn (ORCPT ); Sat, 24 Oct 2015 11:52:43 -0400 Received: from palahniuk.acksyn.org ([5.9.7.26]:60341 "EHLO palahniuk.acksyn.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751416AbbJXPwm (ORCPT ); Sat, 24 Oct 2015 11:52:42 -0400 X-Greylist: delayed 432 seconds by postgrey-1.27 at vger.kernel.org; Sat, 24 Oct 2015 11:52:41 EDT Received: from localhost (localhost [127.0.0.1]) by palahniuk.acksyn.org (Postfix) with ESMTP id D723B2AB80; Sat, 24 Oct 2015 11:45:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=acksyn.org; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received; s=2010; t=1445701528; bh=j3Fl/e9csA/75ygGIDF1syTmkeKj +YeSdwCGpC9wgjc=; b=QV7sZCsLAHKMYWj/ougJBAfR6jOUuN4DxakNPOoxjdMI gNh9XApz99DiOWm8HglUaE/vre6548He5ldFna/H0Za1Vc4K8j8aLJU9f5p3PKpc wXg3zvaMCYsXRIPH3iBHbuy2FQS3MrcKzF7JgNjVX04IpoR0lyVGRCS665C4YuM= Received: from palahniuk.acksyn.org ([127.0.0.1]) by localhost (mail.acksyn.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qt-DVYBuu3RP; Sat, 24 Oct 2015 11:45:28 -0400 (EDT) Received: from localhost (host161-190-dynamic.24-79-r.retail.telecomitalia.it [79.24.190.161]) by palahniuk.acksyn.org (Postfix) with ESMTPSA id EDBF82AB28; Sat, 24 Oct 2015 11:45:27 -0400 (EDT) From: Michele Baldessari To: Jiri Kosina Cc: Michele Baldessari , linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] HID: usbhid: Add a quirk for Xin-Mo Dual Arcade Date: Sat, 24 Oct 2015 17:44:59 +0200 Message-Id: <1445701499-13748-1-git-send-email-michele@acksyn.org> X-Mailer: git-send-email 2.5.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Xin-Mo Dual Arcade controller (16c0:05e1) needs this quirk in order to have the two distinct joysticks working. Before the change: $ jstest /dev/input/js0 Joystick (Xin-Mo Xin-Mo Dual Arcade) has 2 axes (X, Y) ... $ jstest /dev/input/js1 jstest: No such file or directory After the change: $ jstest /dev/input/js0 Joystick (Xin-Mo Xin-Mo Dual Arcade) has 2 axes (X, Y) ... $ jstest /dev/input/js1 Joystick (Xin-Mo Xin-Mo Dual Arcade) has 2 axes (X, Y) ... Signed-off-by: Michele Baldessari --- drivers/hid/usbhid/hid-quirks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c index 1dff8f0015ba..f69049314a2c 100644 --- a/drivers/hid/usbhid/hid-quirks.c +++ b/drivers/hid/usbhid/hid-quirks.c @@ -150,6 +150,7 @@ static const struct hid_blacklist { { USB_VENDOR_ID_MULTIPLE_1781, USB_DEVICE_ID_RAPHNET_4NES4SNES_OLD, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_DRACAL_RAPHNET, USB_DEVICE_ID_RAPHNET_2NES2SNES, HID_QUIRK_MULTI_INPUT }, { USB_VENDOR_ID_DRACAL_RAPHNET, USB_DEVICE_ID_RAPHNET_4NES4SNES, HID_QUIRK_MULTI_INPUT }, + { USB_VENDOR_ID_XIN_MO, USB_DEVICE_ID_XIN_MO_DUAL_ARCADE, HID_QUIRK_NOGET | HID_QUIRK_MULTI_INPUT }, { 0, 0 } };