]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
USB: fix USB keyboard polling parameter
authorVincent Palatin <vpalatin@chromium.org>
Mon, 9 Jan 2012 08:35:09 +0000 (08:35 +0000)
committerWolfgang Denk <wd@denx.de>
Sat, 3 Mar 2012 15:56:09 +0000 (16:56 +0100)
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>
common/usb_kbd.c

index 75107c9a45d9e4397ac9897fbae63bb47ecd4631..aaf7d6fa3dab9f1a8a11c42b3d213ecfd172596f 100644 (file)
@@ -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