Преглед изворни кода

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>
Vincent Palatin пре 13 година
родитељ
комит
3d17308e40
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      common/usb_kbd.c

+ 1 - 1
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