Skip to contentSkip to conversation

HID: quirks: Add no_init_reports for AKAI midi controller

PATCH Superseded Stafford Horne 3 participants 5 messages Jan 27, 2016 – Jan 28, 2016

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: quirks: Add no_init_reports for AKAI midi controller

The midi controller times-out while initializing reports, this causes boot to take an extra 10 seconds. The device descriptor advertises that it has an internal HID device but seems to not actually do anything useful.

---
 drivers/hid/hid-ids.h           | 3 +++
 drivers/hid/usbhid/hid-quirks.c | 1 +
 2 files changed, 4 insertions(+)
drivers/hid/hid-ids.h +3 -0
index b6ff6e7..3dfb166 100644
@@ -61,6 +61,9 @@
 #define USB_VENDOR_ID_AIREN		0x1a2c
 #define USB_DEVICE_ID_AIREN_SLIMPLUS	0x0002
 
+#define USB_VENDOR_ID_AKAI              0x2011
+#define USB_DEVICE_ID_AKAI_MPKMINI2     0x0715
+
 #define USB_VENDOR_ID_ALCOR		0x058f
 #define USB_DEVICE_ID_ALCOR_USBRS232	0x9720
 
drivers/hid/usbhid/hid-quirks.c +1 -0
index 7dd0953..055e740 100644
@@ -55,6 +55,7 @@ static const struct hid_blacklist {
 	{ USB_VENDOR_ID_TOUCHPACK, USB_DEVICE_ID_TOUCHPACK_RTS, HID_QUIRK_MULTI_INPUT },
 
 	{ USB_VENDOR_ID_AIREN, USB_DEVICE_ID_AIREN_SLIMPLUS, HID_QUIRK_NOGET },
+	{ USB_VENDOR_ID_AKAI, USB_DEVICE_ID_AKAI_MPKMINI2, HID_QUIRK_NO_INIT_REPORTS },
 	{ USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_UC100KM, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_CS124U, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_2PORTKVM, HID_QUIRK_NOGET },
Signature · 1 line
2.5.0
maintainer
#1 lore raw
Quoted 30 lines · Stafford Horne

The midi controller times-out while initializing reports, this causes boot to take an extra 10 seconds. The device descriptor advertises that it has an internal HID device but seems to not actually do anything useful.

---
 drivers/hid/hid-ids.h           | 3 +++
 drivers/hid/usbhid/hid-quirks.c | 1 +
 2 files changed, 4 insertions(+)
drivers/hid/hid-ids.h +3 -0
index b6ff6e7..3dfb166 100644
@@ -61,6 +61,9 @@
 #define USB_VENDOR_ID_AIREN		0x1a2c
 #define USB_DEVICE_ID_AIREN_SLIMPLUS	0x0002
 
+#define USB_VENDOR_ID_AKAI              0x2011
+#define USB_DEVICE_ID_AKAI_MPKMINI2     0x0715
+
 #define USB_VENDOR_ID_ALCOR		0x058f
 #define USB_DEVICE_ID_ALCOR_USBRS232	0x9720
 
drivers/hid/usbhid/hid-quirks.c +0 -0
index 7dd0953..055e740 100644

drivers/hid/usbhid/hid-quirks.c static const struct hid_blacklist { · line 58

Quoted 4 lines
drivers/hid/usbhid/hid-quirks.c +1 -0
@@ -55,6 +55,7 @@ static const struct hid_blacklist {
 	{ USB_VENDOR_ID_TOUCHPACK, USB_DEVICE_ID_TOUCHPACK_RTS, HID_QUIRK_MULTI_INPUT },
 
 	{ USB_VENDOR_ID_AIREN, USB_DEVICE_ID_AIREN_SLIMPLUS, HID_QUIRK_NOGET },
+	{ USB_VENDOR_ID_AKAI, USB_DEVICE_ID_AKAI_MPKMINI2, HID_QUIRK_NO_INIT_REPORTS },

If the (proclaimed) HID device is completely silent, wouldn't HID_QUIRK_IGNORE be more appropriate?

Signature · 2 lines
Jiri Kosina
SUSE Labs
#2 lore raw
Quoted 34 lines · Jiri Kosina
Quoted 32 lines · Stafford Horne

The midi controller times-out while initializing reports, this causes boot to take an extra 10 seconds. The device descriptor advertises that it has an internal HID device but seems to not actually do anything useful.

---
 drivers/hid/hid-ids.h           | 3 +++
 drivers/hid/usbhid/hid-quirks.c | 1 +
 2 files changed, 4 insertions(+)
drivers/hid/hid-ids.h +3 -0
index b6ff6e7..3dfb166 100644
@@ -61,6 +61,9 @@
 #define USB_VENDOR_ID_AIREN		0x1a2c
 #define USB_DEVICE_ID_AIREN_SLIMPLUS	0x0002
 
+#define USB_VENDOR_ID_AKAI              0x2011
+#define USB_DEVICE_ID_AKAI_MPKMINI2     0x0715
+
 #define USB_VENDOR_ID_ALCOR		0x058f
 #define USB_DEVICE_ID_ALCOR_USBRS232	0x9720
 
drivers/hid/usbhid/hid-quirks.c +0 -0
index 7dd0953..055e740 100644
@@ -55,6 +55,7 @@ static const struct hid_blacklist {
 	{ USB_VENDOR_ID_TOUCHPACK, USB_DEVICE_ID_TOUCHPACK_RTS, HID_QUIRK_MULTI_INPUT },
 
Quoted 5 lines

drivers/hid/usbhid/hid-quirks.c static const struct hid_blacklist { · line 58

Quoted 2 lines
drivers/hid/usbhid/hid-quirks.c +1 -0
 	{ USB_VENDOR_ID_AIREN, USB_DEVICE_ID_AIREN_SLIMPLUS, HID_QUIRK_NOGET },
+	{ USB_VENDOR_ID_AKAI, USB_DEVICE_ID_AKAI_MPKMINI2, HID_QUIRK_NO_INIT_REPORTS },

If the (proclaimed) HID device is completely silent, wouldn't HID_QUIRK_IGNORE be more appropriate?

You are right, I did NO_INIT_REPORTS because thats where the timeout was. But after further investigation I found that device is silent.

I will change, test and resubmit a new patch version.

-Stafford

#3 lore raw
In reply to Jiri Kosina
Quoted 34 lines · Jiri Kosina
Quoted 32 lines · Stafford Horne

The midi controller times-out while initializing reports, this causes boot to take an extra 10 seconds. The device descriptor advertises that it has an internal HID device but seems to not actually do anything useful.

---
 drivers/hid/hid-ids.h           | 3 +++
 drivers/hid/usbhid/hid-quirks.c | 1 +
 2 files changed, 4 insertions(+)
drivers/hid/hid-ids.h +3 -0
index b6ff6e7..3dfb166 100644
@@ -61,6 +61,9 @@
 #define USB_VENDOR_ID_AIREN		0x1a2c
 #define USB_DEVICE_ID_AIREN_SLIMPLUS	0x0002
 
+#define USB_VENDOR_ID_AKAI              0x2011
+#define USB_DEVICE_ID_AKAI_MPKMINI2     0x0715
+
 #define USB_VENDOR_ID_ALCOR		0x058f
 #define USB_DEVICE_ID_ALCOR_USBRS232	0x9720
 
drivers/hid/usbhid/hid-quirks.c +0 -0
index 7dd0953..055e740 100644
@@ -55,6 +55,7 @@ static const struct hid_blacklist {
 	{ USB_VENDOR_ID_TOUCHPACK, USB_DEVICE_ID_TOUCHPACK_RTS, HID_QUIRK_MULTI_INPUT },
 
Quoted 5 lines

drivers/hid/usbhid/hid-quirks.c static const struct hid_blacklist { · line 58

Quoted 2 lines
drivers/hid/usbhid/hid-quirks.c +1 -0
 	{ USB_VENDOR_ID_AIREN, USB_DEVICE_ID_AIREN_SLIMPLUS, HID_QUIRK_NOGET },
+	{ USB_VENDOR_ID_AKAI, USB_DEVICE_ID_AKAI_MPKMINI2, HID_QUIRK_NO_INIT_REPORTS },

If the (proclaimed) HID device is completely silent, wouldn't HID_QUIRK_IGNORE be more appropriate?

If it really is impossible to use the device.
That quirk would preclude any use you are not aware of with almost no added benefit. I would take the patch as is.

Regards
Oliver

#4 lore raw
Quoted 41 lines · Oliver Neukum
Quoted 34 lines · Jiri Kosina
Quoted 32 lines · Stafford Horne

The midi controller times-out while initializing reports, this causes boot to take an extra 10 seconds. The device descriptor advertises that it has an internal HID device but seems to not actually do anything useful.

---
 drivers/hid/hid-ids.h           | 3 +++
 drivers/hid/usbhid/hid-quirks.c | 1 +
 2 files changed, 4 insertions(+)
drivers/hid/hid-ids.h +3 -0
index b6ff6e7..3dfb166 100644
@@ -61,6 +61,9 @@
 #define USB_VENDOR_ID_AIREN		0x1a2c
 #define USB_DEVICE_ID_AIREN_SLIMPLUS	0x0002
 
+#define USB_VENDOR_ID_AKAI              0x2011
+#define USB_DEVICE_ID_AKAI_MPKMINI2     0x0715
+
 #define USB_VENDOR_ID_ALCOR		0x058f
 #define USB_DEVICE_ID_ALCOR_USBRS232	0x9720
 
drivers/hid/usbhid/hid-quirks.c +0 -0
index 7dd0953..055e740 100644
@@ -55,6 +55,7 @@ static const struct hid_blacklist {
 	{ USB_VENDOR_ID_TOUCHPACK, USB_DEVICE_ID_TOUCHPACK_RTS, HID_QUIRK_MULTI_INPUT },
 
Quoted 5 lines

drivers/hid/usbhid/hid-quirks.c static const struct hid_blacklist { · line 58

Quoted 2 lines
drivers/hid/usbhid/hid-quirks.c +1 -0
 	{ USB_VENDOR_ID_AIREN, USB_DEVICE_ID_AIREN_SLIMPLUS, HID_QUIRK_NOGET },
+	{ USB_VENDOR_ID_AKAI, USB_DEVICE_ID_AKAI_MPKMINI2, HID_QUIRK_NO_INIT_REPORTS },

If the (proclaimed) HID device is completely silent, wouldn't HID_QUIRK_IGNORE be more appropriate?

Quoted 3 lines

If it really is impossible to use the device.
That quirk would preclude any use you are not aware of with almost no added benefit. I would take the patch as is.

That may be right, after having a look at usbhid quirks, no device yet has HID_QUIRK_IGNORE. Also, I have a feeling the HID enpoints might have some proprietary functionality.

The defined interface descriptors are 1 HID, 2 Audio Control Device, 3 Audio
MIDI streaming. I tried to write and read from the HID endpoints using hidraw with no luck. But someone else might figure it out.