Skip to content
Snippets Groups Projects
Commit 3d17308e authored by Vincent Palatin's avatar Vincent Palatin Committed by Wolfgang Denk
Browse files

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: default avatarVincent Palatin <vpalatin@chromium.org>
parent e7e982d6
No related branches found
No related tags found
No related merge requests found
...@@ -320,7 +320,7 @@ static inline void usb_kbd_poll_for_event(struct usb_device *dev) ...@@ -320,7 +320,7 @@ static inline void usb_kbd_poll_for_event(struct usb_device *dev)
struct usb_kbd_pdata *data = dev->privptr; struct usb_kbd_pdata *data = dev->privptr;
iface = &dev->config.if_desc[0]; iface = &dev->config.if_desc[0];
usb_get_report(dev, iface->desc.bInterfaceNumber, 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))) if (memcmp(data->old, data->new, sizeof(data->new)))
usb_kbd_irq_worker(dev); usb_kbd_irq_worker(dev);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment