summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2015-06-19 14:21:32 -0400
committerTom Rini <trini@konsulko.com>2015-06-19 16:46:51 -0400
commit325849ff3d4adeebb8f8f9bc5db950724df9bc21 (patch)
treec48c33d9525757d317f5df5fe65ea8f240ef75cd /common
parent8c65a2fae89ec10f30acdf5bbf42f799f86c3f3d (diff)
parentde451493f1b6dfcc572763be421500754bfc6b2f (diff)
Merge git://git.denx.de/u-boot-usb
Diffstat (limited to 'common')
-rw-r--r--common/usb_kbd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index 49bfc096e4..e2af67d2f0 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -460,10 +460,12 @@ static int usb_kbd_probe(struct usb_device *dev, unsigned int ifnum)
/* We found a USB Keyboard, install it. */
usb_set_protocol(dev, iface->desc.bInterfaceNumber, 0);
+ debug("USB KBD: found set idle...\n");
#if !defined(CONFIG_SYS_USB_EVENT_POLL_VIA_CONTROL_EP) && \
!defined(CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE)
- debug("USB KBD: found set idle...\n");
usb_set_idle(dev, iface->desc.bInterfaceNumber, REPEAT_RATE / 4, 0);
+#else
+ usb_set_idle(dev, iface->desc.bInterfaceNumber, 0, 0);
#endif
debug("USB KBD: enable interrupt pipe...\n");