]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.9.49/usb-quirks-add-delay-init-quirk-for-corsair-strafe-rgb-keyboard.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.9.49 / usb-quirks-add-delay-init-quirk-for-corsair-strafe-rgb-keyboard.patch
CommitLineData
7b6513bc
GKH
1From de3af5bf259d7a0bfaac70441c8568ab5998d80c Mon Sep 17 00:00:00 2001
2From: Kai-Heng Feng <kai.heng.feng@canonical.com>
3Date: Wed, 16 Aug 2017 10:53:20 +0800
4Subject: usb: quirks: add delay init quirk for Corsair Strafe RGB keyboard
5
6From: Kai-Heng Feng <kai.heng.feng@canonical.com>
7
8commit de3af5bf259d7a0bfaac70441c8568ab5998d80c upstream.
9
10Corsair Strafe RGB keyboard has trouble to initialize:
11
12[ 1.679455] usb 3-6: new full-speed USB device number 4 using xhci_hcd
13[ 6.871136] usb 3-6: unable to read config index 0 descriptor/all
14[ 6.871138] usb 3-6: can't read configurations, error -110
15[ 6.991019] usb 3-6: new full-speed USB device number 5 using xhci_hcd
16[ 12.246642] usb 3-6: unable to read config index 0 descriptor/all
17[ 12.246644] usb 3-6: can't read configurations, error -110
18[ 12.366555] usb 3-6: new full-speed USB device number 6 using xhci_hcd
19[ 17.622145] usb 3-6: unable to read config index 0 descriptor/all
20[ 17.622147] usb 3-6: can't read configurations, error -110
21[ 17.742093] usb 3-6: new full-speed USB device number 7 using xhci_hcd
22[ 22.997715] usb 3-6: unable to read config index 0 descriptor/all
23[ 22.997716] usb 3-6: can't read configurations, error -110
24
25Although it may work after several times unpluging/pluging:
26
27[ 68.195240] usb 3-6: new full-speed USB device number 11 using xhci_hcd
28[ 68.337459] usb 3-6: New USB device found, idVendor=1b1c, idProduct=1b20
29[ 68.337463] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
30[ 68.337466] usb 3-6: Product: Corsair STRAFE RGB Gaming Keyboard
31[ 68.337468] usb 3-6: Manufacturer: Corsair
32[ 68.337470] usb 3-6: SerialNumber: 0F013021AEB8046755A93ED3F5001941
33
34Tried three quirks: USB_QUIRK_DELAY_INIT, USB_QUIRK_NO_LPM and
35USB_QUIRK_DEVICE_QUALIFIER, user confirmed that USB_QUIRK_DELAY_INIT alone
36can workaround this issue. Hence add the quirk for Corsair Strafe RGB.
37
38BugLink: https://bugs.launchpad.net/bugs/1678477
39Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
40Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
41
42---
43 drivers/usb/core/quirks.c | 3 +++
44 1 file changed, 3 insertions(+)
45
46--- a/drivers/usb/core/quirks.c
47+++ b/drivers/usb/core/quirks.c
48@@ -217,6 +217,9 @@ static const struct usb_device_id usb_qu
49 { USB_DEVICE(0x1a0a, 0x0200), .driver_info =
50 USB_QUIRK_LINEAR_UFRAME_INTR_BINTERVAL },
51
52+ /* Corsair Strafe RGB */
53+ { USB_DEVICE(0x1b1c, 0x1b20), .driver_info = USB_QUIRK_DELAY_INIT },
54+
55 /* Acer C120 LED Projector */
56 { USB_DEVICE(0x1de1, 0xc102), .driver_info = USB_QUIRK_NO_LPM },
57