summaryrefslogtreecommitdiff
path: root/common/usb_kbd.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-08-09 23:17:32 +0200
committerWolfgang Denk <wd@denx.de>2007-08-09 23:17:32 +0200
commit19901c6320a07dfa33814c9cdb5b9f6511765079 (patch)
treed85a6eec1ec2a4d94c61244ab85d72368305726e /common/usb_kbd.c
parent2c4faea84f3d96d674e3c065e1f220b20c8930c0 (diff)
parent78549bbf44bd2c8d1a0730fb068836071751afaa (diff)
downloadu-boot-imx-19901c6320a07dfa33814c9cdb5b9f6511765079.zip
u-boot-imx-19901c6320a07dfa33814c9cdb5b9f6511765079.tar.gz
u-boot-imx-19901c6320a07dfa33814c9cdb5b9f6511765079.tar.bz2
Merge with /home/wd/git/u-boot/custodian/u-boot-usb
Diffstat (limited to 'common/usb_kbd.c')
-rw-r--r--common/usb_kbd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index 56c2166..aec558a 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -129,7 +129,11 @@ static int usb_kbd_testc(void)
static int usb_kbd_getc(void)
{
char c;
- while(usb_in_pointer==usb_out_pointer);
+ while(usb_in_pointer==usb_out_pointer) {
+#ifdef CFG_USB_EVENT_POLL
+ usb_event_poll();
+#endif
+ }
if((usb_out_pointer+1)==USB_KBD_BUFFER_LEN)
usb_out_pointer=0;
else