Skip to content

Commit 1debfb3

Browse files
Chase DouglasJiri Kosina
authored andcommitted
HID: debugfs: wake up reading tasks upon event
Some devices poke the hid core in a way that causes hid_debug_event to be called, while never calling hid_dump_input. Without this wakeup addition, tasks reading for hid events through debugfs may never see any events. It may be that a well written driver doesn't cause this, but then what's the point of debugfs? Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 816651a commit 1debfb3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/hid/hid-debug.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,8 @@ void hid_debug_event(struct hid_device *hdev, char *buf)
570570
buf[i];
571571
list->tail = (list->tail + i) % HID_DEBUG_BUFSIZE;
572572
}
573+
574+
wake_up_interruptible(&hdev->debug_wait);
573575
}
574576
EXPORT_SYMBOL_GPL(hid_debug_event);
575577

0 commit comments

Comments
 (0)