Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1540760 > unrolled thread
| Started by | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
|---|---|
| First post | 2016-12-13 01:30 +0100 |
| Last post | 2016-12-19 11:40 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] HID: usbhid: fix more Mayflash adapters (HID_QUIRK_MULTI_INPUT) Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-12-13 01:30 +0100
Re: [PATCH] HID: usbhid: fix more Mayflash adapters (HID_QUIRK_MULTI_INPUT) Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2016-12-13 09:10 +0100
Re: [PATCH] HID: usbhid: fix more Mayflash adapters (HID_QUIRK_MULTI_INPUT) Jiri Kosina <jikos@kernel.org> - 2016-12-19 11:30 +0100
Re: [PATCH] HID: usbhid: fix more Mayflash adapters (HID_QUIRK_MULTI_INPUT) Jiri Kosina <jikos@kernel.org> - 2016-12-19 11:40 +0100
| From | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
|---|---|
| Date | 2016-12-13 01:30 +0100 |
| Subject | [PATCH] HID: usbhid: fix more Mayflash adapters (HID_QUIRK_MULTI_INPUT) |
| Message-ID | <sNJ8J-2DO-1@gated-at.bofh.it> |
From: Andrew Rodland <andrew@cleverdomain.org>
Add "Mayflash GameCube Controller Adapter for Wii U and PC USB" and
"Mayflash PS3 Game Controller Adapter" to the list of devices needing
HID_QUIRK_MULTI_INPUT. These devices have 4 controller ports, and without
the quirk they all become one very large joystock device. With the quirk
they're recognized as 4 separate joysticks.
Signed-off-by: Andrew Rodland <andrew@cleverdomain.org>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=115841
[dtor: picked up Andrew's patch, added the PS3 controller data from
bugzilla info]
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
drivers/hid/hid-ids.h | 2 ++
drivers/hid/usbhid/hid-quirks.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 575aa65..63824f1 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -317,6 +317,8 @@
#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 e6cfd32..6f8736a 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_CORSAIR, USB_DEVICE_ID_CORSAIR_STRAFE, HID_QUIRK_NO_INIT_REPORTS | HID_QUIRK_ALWAYS_POLL },
{ 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_GAMECUBE, 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_WIIU, 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 },
--
2.8.0.rc3.226.g39d4020
--
Dmitry
[toc] | [next] | [standalone]
| From | Benjamin Tissoires <benjamin.tissoires@redhat.com> |
|---|---|
| Date | 2016-12-13 09:10 +0100 |
| Message-ID | <sNQjU-7cA-5@gated-at.bofh.it> |
| In reply to | #1540760 |
On Dec 12 2016 or thereabouts, Dmitry Torokhov wrote: > From: Andrew Rodland <andrew@cleverdomain.org> > > Add "Mayflash GameCube Controller Adapter for Wii U and PC USB" and > "Mayflash PS3 Game Controller Adapter" to the list of devices needing > HID_QUIRK_MULTI_INPUT. These devices have 4 controller ports, and without > the quirk they all become one very large joystock device. With the quirk > they're recognized as 4 separate joysticks. > > Signed-off-by: Andrew Rodland <andrew@cleverdomain.org> > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=115841 > [dtor: picked up Andrew's patch, added the PS3 controller data from > bugzilla info] > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> > --- Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Cheers, Benjamin
[toc] | [prev] | [next] | [standalone]
| From | Jiri Kosina <jikos@kernel.org> |
|---|---|
| Date | 2016-12-19 11:30 +0100 |
| Message-ID | <sQ3mG-6t5-33@gated-at.bofh.it> |
| In reply to | #1540760 |
On Mon, 12 Dec 2016, Dmitry Torokhov wrote:
> From: Andrew Rodland <andrew@cleverdomain.org>
>
> Add "Mayflash GameCube Controller Adapter for Wii U and PC USB" and
> "Mayflash PS3 Game Controller Adapter" to the list of devices needing
> HID_QUIRK_MULTI_INPUT. These devices have 4 controller ports, and without
> the quirk they all become one very large joystock device. With the quirk
> they're recognized as 4 separate joysticks.
>
> Signed-off-by: Andrew Rodland <andrew@cleverdomain.org>
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=115841
> [dtor: picked up Andrew's patch, added the PS3 controller data from
> bugzilla info]
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This is already in as b2554000f5b ("HID: usbhid: Add quirks for
Mayflash/Dragonrise GameCube and PS3 adapters").
Thanks,
--
Jiri Kosina
SUSE Labs
[toc] | [prev] | [next] | [standalone]
| From | Jiri Kosina <jikos@kernel.org> |
|---|---|
| Date | 2016-12-19 11:40 +0100 |
| Message-ID | <sQ3wm-6wc-17@gated-at.bofh.it> |
| In reply to | #1544434 |
On Mon, 19 Dec 2016, Marcel Hasler wrote: > What maybe still should be added, is the "Mayflash Dolphin-bar" (PID > 0x1803, see the Bugzilla entry mentioned above). On Mon, 19 Dec 2016, Robert de Rooy wrote: > Thanks for this, > > Any chance we can also get the same quirk added for the Mayflash Dolphinbar? > It has four different operating modes, when set to "mode 3", it emulates 4 > PC USB joysticks and has the same problem and needs the > HID_QUIRK_MULTI_INPUT. > > When set to mode 3, the USB id is: 0079:1803 > > I tested it locally by booting with usbhid.quirks=0x79:0x1803:0x40 > > Regarding the other modes, mode 1 and 2 already work as it just emulates a > USB keyboard/mouse. mode 4 is special, and supposedly now works with the > latest versions of the Dolphin emulator for Linux. Could either of you please submit a proper patch on top of b255400, so that I could queue it? Thanks, -- Jiri Kosina SUSE Labs
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web