Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1321752 > unrolled thread

[PATCH v2] HID: quirks: Add no_init_reports for AKAI midi controller

Started byStafford Horne <shorne@gmail.com>
First post2016-01-29 14:40 +0100
Last post2016-01-29 16:50 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2] HID: quirks: Add no_init_reports for AKAI midi controller Stafford Horne <shorne@gmail.com> - 2016-01-29 14:40 +0100
    Re: [PATCH v2] HID: quirks: Add no_init_reports for AKAI midi  controller Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2016-01-29 14:50 +0100
    Re: [PATCH v2] HID: quirks: Add no_init_reports for AKAI midi  controller Jiri Kosina <jikos@kernel.org> - 2016-01-29 16:50 +0100

#1321752 — [PATCH v2] HID: quirks: Add no_init_reports for AKAI midi controller

FromStafford Horne <shorne@gmail.com>
Date2016-01-29 14:40 +0100
Subject[PATCH v2] HID: quirks: Add no_init_reports for AKAI midi controller
Message-ID<qWhrj-3JY-1@gated-at.bofh.it>
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.

Signed-off-by: Stafford Horne <shorne@gmail.com>
---
Resending the same patch for the keyboard to simply disable init reports,
as discussed with Oliver there might be some hidden functionality which
I will look into.  At the moment I dont want to worry about time timeouts. 

Also, I did create and test a patch to use HID_QUIRK_IGNORE which I can 
send if you feel strongly about it. 

Changes in v2
 - use tabs instead of spaces in hid-ids.h

 drivers/hid/hid-ids.h           | 3 +++
 drivers/hid/usbhid/hid-quirks.c | 1 +
 2 files changed, 4 insertions(+)

diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index b6ff6e7..74ed730 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -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
 
diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c
index 7dd0953..055e740 100644
--- a/drivers/hid/usbhid/hid-quirks.c
+++ b/drivers/hid/usbhid/hid-quirks.c
@@ -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 },
-- 
2.5.0

[toc] | [next] | [standalone]


#1321758 — Re: [PATCH v2] HID: quirks: Add no_init_reports for AKAI midi controller

FromBenjamin Tissoires <benjamin.tissoires@redhat.com>
Date2016-01-29 14:50 +0100
SubjectRe: [PATCH v2] HID: quirks: Add no_init_reports for AKAI midi controller
Message-ID<qWhAZ-3QJ-7@gated-at.bofh.it>
In reply to#1321752
On Jan 29 2016 or thereabouts, Stafford Horne wrote:
> 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.
> 
> Signed-off-by: Stafford Horne <shorne@gmail.com>

Works for me:
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>

Cheers,
Benjamin

> ---
> Resending the same patch for the keyboard to simply disable init reports,
> as discussed with Oliver there might be some hidden functionality which
> I will look into.  At the moment I dont want to worry about time timeouts. 
> 
> Also, I did create and test a patch to use HID_QUIRK_IGNORE which I can 
> send if you feel strongly about it. 
> 
> Changes in v2
>  - use tabs instead of spaces in hid-ids.h
> 
>  drivers/hid/hid-ids.h           | 3 +++
>  drivers/hid/usbhid/hid-quirks.c | 1 +
>  2 files changed, 4 insertions(+)
> 
> diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
> index b6ff6e7..74ed730 100644
> --- a/drivers/hid/hid-ids.h
> +++ b/drivers/hid/hid-ids.h
> @@ -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
>  
> diff --git a/drivers/hid/usbhid/hid-quirks.c b/drivers/hid/usbhid/hid-quirks.c
> index 7dd0953..055e740 100644
> --- a/drivers/hid/usbhid/hid-quirks.c
> +++ b/drivers/hid/usbhid/hid-quirks.c
> @@ -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 },
> -- 
> 2.5.0
> 

[toc] | [prev] | [next] | [standalone]


#1321843 — Re: [PATCH v2] HID: quirks: Add no_init_reports for AKAI midi controller

FromJiri Kosina <jikos@kernel.org>
Date2016-01-29 16:50 +0100
SubjectRe: [PATCH v2] HID: quirks: Add no_init_reports for AKAI midi controller
Message-ID<qWjt8-5fy-13@gated-at.bofh.it>
In reply to#1321752
On Fri, 29 Jan 2016, Stafford Horne wrote:

> 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.
> 
> Signed-off-by: Stafford Horne <shorne@gmail.com>
> ---
> Resending the same patch for the keyboard to simply disable init reports,
> as discussed with Oliver there might be some hidden functionality which
> I will look into.  At the moment I dont want to worry about time timeouts. 
> 
> Also, I did create and test a patch to use HID_QUIRK_IGNORE which I can 
> send if you feel strongly about it. 

Applied to for-4.5/upstream-fixes.

-- 
Jiri Kosina
SUSE Labs

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web