From patchwork Mon Jan 9 18:35:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Palatin X-Patchwork-Id: 135087 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id DA770B6F99 for ; Tue, 10 Jan 2012 05:35:24 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D398F2821C; Mon, 9 Jan 2012 19:35:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N1iCFYjhm5da; Mon, 9 Jan 2012 19:35:22 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 93D0D28235; Mon, 9 Jan 2012 19:35:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 06C0928235 for ; Mon, 9 Jan 2012 19:35:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EyAxRhFdfjfN for ; Mon, 9 Jan 2012 19:35:18 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f74.google.com (mail-ee0-f74.google.com [74.125.83.74]) by theia.denx.de (Postfix) with ESMTPS id 5DD782821C for ; Mon, 9 Jan 2012 19:35:16 +0100 (CET) Received: by eekc1 with SMTP id c1so155417eek.3 for ; Mon, 09 Jan 2012 10:35:15 -0800 (PST) Received: by 10.14.185.130 with SMTP id u2mr4796144eem.6.1326134115207; Mon, 09 Jan 2012 10:35:15 -0800 (PST) Received: by 10.14.185.130 with SMTP id u2mr4796119eem.6.1326134115023; Mon, 09 Jan 2012 10:35:15 -0800 (PST) Received: from hpza9.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id m16si16577007eei.3.2012.01.09.10.35.15 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 09 Jan 2012 10:35:15 -0800 (PST) Received: from vpa.mtv.corp.google.com (vpa.mtv.corp.google.com [172.22.72.27]) by hpza9.eem.corp.google.com (Postfix) with ESMTP id CE81C5C0050; Mon, 9 Jan 2012 10:35:14 -0800 (PST) Received: by vpa.mtv.corp.google.com (Postfix, from userid 125455) id 20B13160F5E; Mon, 9 Jan 2012 10:35:14 -0800 (PST) From: Vincent Palatin To: u-boot Date: Mon, 9 Jan 2012 10:35:09 -0800 Message-Id: <1326134109-26190-1-git-send-email-vpalatin@chromium.org> X-Mailer: git-send-email 1.7.3.1 Cc: Vincent Palatin Subject: [U-Boot] [PATCH] USB: fix USB keyboard polling parameter X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 --- 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 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