aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2013-11-20 09:49:42 -0500
committerJiri Kosina <jkosina@suse.cz>2013-11-21 04:28:58 -0500
commit8a396321e2102d98a0d387c773be13b55d88ae6f (patch)
tree994e6442aa3fec3cd02091b255fa0bd542883828
parent4a2c94c9b6c03af61b04993340bd9559e2277de4 (diff)
HID: kye: fix unresponsive keyboard
The manticore keyboard requires that all usb EP are opened at least once to be fully functional. The third EP forwards to the user space some vendor specific information about the keyboard state, but are useless currently for the kernel. Opening them and closing them makes the keyboard responsive again. Reported-and-tested-by: Adam Kulagowski <fidor@fidor.org> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/hid/hid-kye.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/hid/hid-kye.c b/drivers/hid/hid-kye.c
index 35a4f9cc4299..ecb5ca669e97 100644
--- a/drivers/hid/hid-kye.c
+++ b/drivers/hid/hid-kye.c
@@ -421,6 +421,14 @@ static int kye_probe(struct hid_device *hdev, const struct hid_device_id *id)
421 goto enabling_err; 421 goto enabling_err;
422 } 422 }
423 break; 423 break;
424 case USB_DEVICE_ID_GENIUS_MANTICORE:
425 /*
426 * The manticore keyboard needs to have all the interfaces
427 * opened at least once to be fully functional.
428 */
429 if (hid_hw_open(hdev))
430 hid_hw_close(hdev);
431 break;
424 } 432 }
425 433
426 return 0; 434 return 0;