Re: [U-Boot] [PATCH v5 1/5] usb_kdb: only process events successfully received

2019-08-23 Thread Marek Vasut
On 8/18/19 10:55 AM, Michal Suchanek wrote:
> Causes unbound key repeat on error otherwise.
> 
> Signed-off-by: Michal Suchanek 
> ---
> v2: fix indentation
> v4: fix ! condition to >= 0
> v5: fix commit message typo

The series still fails to build:
https://travis-ci.org/marex/u-boot-usb/jobs/575422882
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v5 1/5] usb_kdb: only process events successfully received

2019-08-18 Thread Marek Vasut
On 8/18/19 10:55 AM, Michal Suchanek wrote:
> Causes unbound key repeat on error otherwise.
> 
> Signed-off-by: Michal Suchanek 
> ---
> v2: fix indentation
> v4: fix ! condition to >= 0
> v5: fix commit message typo

Applied all, thanks.
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v5 1/5] usb_kdb: only process events successfully received

2019-08-18 Thread Michal Suchanek
Causes unbound key repeat on error otherwise.

Signed-off-by: Michal Suchanek 
---
v2: fix indentation
v4: fix ! condition to >= 0
v5: fix commit message typo
---
 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 387373746147..e0c1e6d2b796 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -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, >new[0], data->intpktsize,
-  data->intinterval);
-
-   usb_kbd_irq_worker(dev);
+   if (usb_submit_int_msg(dev, data->intpipe, >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)
-- 
2.22.0

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot