From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753022AbbJYJPb (ORCPT ); Sun, 25 Oct 2015 05:15:31 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35732 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750937AbbJYJP2 (ORCPT ); Sun, 25 Oct 2015 05:15:28 -0400 Subject: Re: [PATCH] HID: usbhid: Add a quirk for Xin-Mo Dual Arcade To: Michele Baldessari , Jiri Kosina References: <1445701499-13748-1-git-send-email-michele@acksyn.org> Cc: linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org From: Lars Melin Message-ID: <562C9DA5.9090800@gmail.com> Date: Sun, 25 Oct 2015 16:15:17 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1445701499-13748-1-git-send-email-michele@acksyn.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2015-10-24 22:44, Michele Baldessari wrote: > 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 } > }; > Sorry but I don't believe that XIN_MO is the owner of the 16c0 VID so should not be given that ownership in linux. /Lars