mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
usb_kdb: only process events successfully received
Causes unbound key repeat on error otherwise. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
This commit is contained in:
parent
001c8ea94a
commit
3e816a2424
1 changed files with 3 additions and 4 deletions
|
@ -340,10 +340,9 @@ static inline void usb_kbd_poll_for_event(struct usb_device *dev)
|
|||
struct usb_kbd_pdata *data = dev->privptr;
|
||||
|
||||
/* Submit a interrupt transfer request */
|
||||
usb_submit_int_msg(dev, data->intpipe, &data->new[0], data->intpktsize,
|
||||
data->intinterval);
|
||||
|
||||
usb_kbd_irq_worker(dev);
|
||||
if (usb_submit_int_msg(dev, data->intpipe, &data->new[0],
|
||||
data->intpktsize, data->intinterval) >= 0)
|
||||
usb_kbd_irq_worker(dev);
|
||||
#elif defined(CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP) || \
|
||||
defined(CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE)
|
||||
#if defined(CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP)
|
||||
|
|
Loading…
Add table
Reference in a new issue