diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2011-12-19 12:41:59 -0800 |
---|---|---|
committer | Stefan Reinauer <reinauer@chromium.org> | 2011-12-19 13:27:59 -0800 |
commit | 80867ffc06842d3e75695709837917025cbe2b04 (patch) | |
tree | e11ad5f057fa50ea6641a0fb1d05ea0916614d7c /common/usb_kbd.c | |
parent | 0752c38eb7fdde34b5e1746fbc71fe151c1228f9 (diff) |
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>
BUG=chrome-os-partner:5752
TEST=use various USB keyboard and check their behavior with the USB analyzer.
Change-Id: I8706a91473534e251f5bc97d8d97ab92d2b6e65d
Reviewed-on: https://gerrit.chromium.org/gerrit/13149
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'common/usb_kbd.c')
-rw-r--r-- | common/usb_kbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_kbd.c b/common/usb_kbd.c index 182bb883cc8..e6f50ad4a7b 100644 --- a/common/usb_kbd.c +++ b/common/usb_kbd.c @@ -321,7 +321,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 |