Skip to contentSkip to conversation

tbs2910: fix lost characters on serial input

PATCH New Soeren Moch 2 participants 2 messages Nov 27, 2014 – Dec 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tbs2910: fix lost characters on serial input

With enabled console_mux for serial input and usb keyboard sometimes characters get lost when typing too fast at the serial input (pasting strings in serial console window). Fix this by using INT_QUEUE for polling the usb keyboard.

---
Cc: Stefano Babic <[email protected]>

---
 include/configs/tbs2910.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/tbs2910.h +1 -1
index 6ab2184..c097b98 100644
@@ -167,7 +167,7 @@
 #define CONFIG_USB_STORAGE
 #define CONFIG_USB_KEYBOARD
 #ifdef CONFIG_USB_KEYBOARD
-#define CONFIG_SYS_USB_EVENT_POLL
+#define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
 #define CONFIG_SYS_STDIO_DEREGISTER
 #define CONFIG_PREBOOT "if hdmidet; then usb start; fi"
 #endif /* CONFIG_USB_KEYBOARD */
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 tbs2910: fix lost characters on serial input

Quoted 18 lines · Soeren Moch

With enabled console_mux for serial input and usb keyboard sometimes characters get lost when typing too fast at the serial input (pasting strings in serial console window). Fix this by using INT_QUEUE for polling the usb keyboard.

---
Cc: Stefano Babic <[email protected]>

---
 include/configs/tbs2910.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/tbs2910.h +0 -0
index 6ab2184..c097b98 100644

include/configs/tbs2910.h line 173

Quoted 8 lines
include/configs/tbs2910.h +1 -1
@@ -167,7 +167,7 @@
 #define CONFIG_USB_STORAGE
 #define CONFIG_USB_KEYBOARD
 #ifdef CONFIG_USB_KEYBOARD
-#define CONFIG_SYS_USB_EVENT_POLL
+#define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
 #define CONFIG_SYS_STDIO_DEREGISTER
 #define CONFIG_PREBOOT "if hdmidet; then usb start; fi"
 #endif /* CONFIG_USB_KEYBOARD */

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================