summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-01-09 08:35:09 +0000
committerWolfgang Denk <wd@denx.de>2012-03-03 16:56:09 +0100
commit3d17308e405e6a3eb4de869b36218d2f95c0e546 (patch)
tree68ee386b8647432c3eb7359b460a53c78c00732e /common
parente7e982d69c43b89f7e19b63479c8b2e880fbd75c (diff)
downloadu-boot-imx-3d17308e405e6a3eb4de869b36218d2f95c0e546.zip
u-boot-imx-3d17308e405e6a3eb4de869b36218d2f95c0e546.tar.gz
u-boot-imx-3d17308e405e6a3eb4de869b36218d2f95c0e546.tar.bz2
USB: fix USB keyboard polling parameter
When doing a "GET_REPORT" request on the keyboard control endpoint, the report ID should 0 (ie report ID not used) rather than 1 as reports are not used in boot mode. Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/usb_kbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index 75107c9..aaf7d6f 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -320,7 +320,7 @@ static inline void usb_kbd_poll_for_event(struct usb_device *dev)
struct usb_kbd_pdata *data = dev->privptr;
iface = &dev->config.if_desc[0];
usb_get_report(dev, iface->desc.bInterfaceNumber,
- 1, 1, data->new, sizeof(data->new));
+ 1, 0, data->new, sizeof(data->new));
if (memcmp(data->old, data->new, sizeof(data->new)))
usb_kbd_irq_worker(dev);
#endif