Skip to content
Commit e4b70d80 authored by Stephen Warren's avatar Stephen Warren Committed by Marek Vasut
Browse files

usb: kbd: don't use int xfers when polling via ctrl xfers



When CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP is enabled, use a
GET_REPORT control transfer to retrieve the initial state of the
keyboard. This matches the technique used to poll the keyboard state.
This is useful since it eliminates the remaining use of interrupt
transfers from the USB keyboard driver, which allows it to work with
USB HCD that don't support interrupt transfers.

Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent fee331f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment