diff mbox series

[U-Boot,v2,8/9] usb: kbd: use usb_int_msg_nonblock for polling

Message ID 3640553af38bb0266bcfde58412677d26c8c1422.1562090082.git.msuchanek@suse.de
State Superseded
Delegated to: Marek Vasut
Headers show
Series [U-Boot,v2,1/9] usb: r8a66597: return -ENOTSUPP from unimplemented submit_int_msg | expand

Commit Message

Michal Suchánek July 2, 2019, 5:55 p.m. UTC
With the following patch it avoids excessive delays with USB 1.1
keyboard connected to high-speed USB hub conncted to dwc2.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
v2: usb_submit_int_msg -> usb_int_msg
---
 common/usb_kbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index 71da890b762a..c7be125f1811 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -317,7 +317,7 @@  static inline void usb_kbd_poll_for_event(struct usb_device *dev)
 	struct usb_kbd_pdata *data = dev->privptr;
 
 	/* Submit a interrupt transfer request */
-	if (!usb_int_msg(dev, data->intpipe, &data->new[0],
+	if (!usb_int_msg_nonblock(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) || \