Skip to content
  • Hans de Goede's avatar
    usb: kbd: Add (optional) support for using an interrupt queue for polling · 8e553119
    Hans de Goede authored
    
    
    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>
    8e553119