Skip to content
Commit 8e553119 authored by Hans de Goede's avatar Hans de Goede Committed by Marek Vasut
Browse files

usb: kbd: Add (optional) support for using an interrupt queue for polling



Waiting an interrupt packet to complete in usb_kbd_poll_for_event, causes
a 40 ms latency for each call to usb_kbd_testc, which is undesirable.

Using control messages leads to lower (but still not 0) latency, but some
devices do not work well with control messages (e.g. my kvm behaves funny
with them).

This commit adds support for using the int_queue mechanism which at least
the ehci-hcd driver supports. This allows polling with 0 latency, while
using interrupt packets.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 8f8d7d24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment