Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion drivers/hid/usbhid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,14 @@ static int usbhid_open(struct hid_device *hid)

set_bit(HID_OPENED, &usbhid->iofl);

if (hid->quirks & HID_QUIRK_ALWAYS_POLL) {
/*
* ALWAYS_POLL devices are already polled from usbhid_start(), and a
* device with no input reports has nothing to send on the interrupt
* IN endpoint. In some cases polling is harmful: on the ASUS ROG
* N-Key keyboards it makes the sibling interface drop keypresses.
*/
if ((hid->quirks & HID_QUIRK_ALWAYS_POLL) ||
list_empty(&hid->report_enum[HID_INPUT_REPORT].report_list)) {
res = 0;
goto Done;
}
Expand Down