public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v3 1/7] usb_kdb: only process events succesfully received
@ 2019-07-05 10:44 Michal Suchanek
  2019-07-05 10:44 ` [U-Boot] [PATCH v3 2/7] usb: usb_submit_int_msg -> usb_int_msg Michal Suchanek
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: Michal Suchanek @ 2019-07-05 10:44 UTC (permalink / raw)
  To: u-boot

Causes unbound key repeat on error otherwise.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
v2: fix indentation
---
 common/usb_kbd.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index cc99c6be0720..fc9419e0238a 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -339,10 +339,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))
+		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)
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-07-15  9:39 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-05 10:44 [U-Boot] [PATCH v3 1/7] usb_kdb: only process events succesfully received Michal Suchanek
2019-07-05 10:44 ` [U-Boot] [PATCH v3 2/7] usb: usb_submit_int_msg -> usb_int_msg Michal Suchanek
2019-07-05 13:51   ` Bin Meng
2019-07-10 15:50     ` Michal Suchánek
2019-07-05 10:44 ` [U-Boot] [PATCH v3 3/7] usb: storage: submit_int_msg " Michal Suchanek
2019-07-05 13:52   ` Bin Meng
2019-07-05 10:44 ` [U-Boot] [PATCH v3 4/7] usb: Add nonblock argument to submit_int_msg Michal Suchanek
2019-07-05 10:44 ` [U-Boot] [PATCH v3 5/7] usb: add usb_int_msg_nonblock Michal Suchanek
2019-07-05 12:13   ` Marek Vasut
2019-07-10 15:52     ` Michal Suchánek
2019-07-12  4:02       ` Marek Vasut
2019-07-05 10:44 ` [U-Boot] [PATCH v3 6/7] usb: kbd: use usb_int_msg_nonblock for polling Michal Suchanek
2019-07-05 10:44 ` [U-Boot] [PATCH v3 7/7] dwc2: use the nonblock argument in submit_int_msg Michal Suchanek
2019-07-05 12:12 ` [U-Boot] [PATCH v3 1/7] usb_kdb: only process events succesfully received Marek Vasut
2019-07-10 15:47   ` Michal Suchánek
2019-07-12  4:05     ` Marek Vasut
2019-07-12 14:24       ` Michal Suchánek
2019-07-15  4:28         ` Marek Vasut
2019-07-15  9:39           ` Michal Suchánek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox